IMageMagick on Ubuntu 7.04 - libMagickWand.so.1: cannot open shared object file: No such file or directory
The Rmagic docs have this FAQ:
Help! I’m getting the message “libMagickWand.so.1: cannot open shared object file: No such file or directory” I know ImageMagick is installed! What should I do?
The full text of the message is:
/usr/lib/ruby/gems/1.8/gems/rmagick-2.2.2/lib/RMagick2.so:
libMagickWand.so.1: cannot open shared object file: No such file or
directory - /usr/lib/ruby/gems/1.8/gems/rmagick-2.2.2/lib/RMagick2.so
(LoadError)The message will be slightly different if you are installing RMagick from source or you’ve installed GraphicsMagick.
This message is extremely confusing. It looks like Ruby is complaining that it can’t find RMagick.so, but actually Ruby is complaining that it can’t find libMagickWand.so.
Unless you specify a different directory when you run the configure script, the ImageMagick/GraphicsMagick shared object file (libMagickWand.so or libGraphicsMagick.so) is installed in the /usr/local/lib directory. However, the Linux dynamic linker/loader only looks for shared objects in /lib and /usr/lib by default. You have to add /usr/local/lib to the list of locations it searches. The easiest way to do this is to use the LD_LIBRARY_PATH environment variable. Add this statement to one of your startup files:
Adding the line “/usr/local/lib” to a new file here, “/etc/ld.so.conf.d/” took care of the issue.
Post a Comment