4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

今日もImageMagickインストール済みCentOS 5.6でRMagickをインストールするのに手間取った

4
Last updated at Posted at 2013-01-24
$ gem install rmagick
…
checking for InitializeMagick() in -lMagickCore... no
checking for InitializeMagick() in -lMagick... no
checking for InitializeMagick() in -lMagick++... no
Can't install RMagick 2.13.1. Can't find the ImageMagick library or one of the dependent libraries. Check the mkmf.log file for more detailed information.

MagickCoreライブラリが認識されてなさそうなのでライブラリをgrepしてみる

# ldconfig -p | grep -i magick
	libMagickWand-Q16.so.7 (libc6,x86-64) => /usr/lib64/libMagickWand-Q16.so.7
	libMagickWand-Q16.so (libc6,x86-64) => /usr/lib64/libMagickWand-Q16.so
	libMagickCore-Q16.so.7 (libc6,x86-64) => /usr/lib64/libMagickCore-Q16.so.7
	libMagickCore-Q16.so (libc6,x86-64) => /usr/lib64/libMagickCore-Q16.so
	libMagick++-Q16.so.7 (libc6,x86-64) => /usr/lib64/libMagick++-Q16.so.7
	libMagick++-Q16.so (libc6,x86-64) => /usr/lib64/libMagick++-Q16.so

libMagickCore-Q16.so はあるけど -Q16 が邪魔で認識できなかったっぽい

# cd /usr/lib64/
# ln -s libMagickCore-Q16.so libMagickCore.so

シムリンク貼ったらインストールできた

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?