libMagick (ImageMagick cannot open shared object file: No such file or directory)

On Debian 5 (Lenny) after installing ImageMagick and rmagick, when testing my rails application:
libMagickCore.so.2: cannot open shared object file: No such file or directory – /usr/lib/ruby/gems/1.8/gems/rmagick-2.8.0/lib/RMagick2.so
Missing these required gems: rmagick ...

At first I thought it must be a problem of rmagick because apaches module passenger raises up an error about missing rmagick…

But if you look closer into the problem, youll see that the libraries of Imagemagick arent found in that folders where they are excepted to be.

So what can you can do now?

1. The easiest way is to type this into the console, so the libs are getting found: ldconfig /usr/local/lib
2. compile Imagemagic again with explicitly setting the libpath to /usr/lib where the libraries are excepted.

Comments

  1. Afhin says:

    Hi! (sorry my english I have plborem with imagick install.I have done this: install libmagick9, libmagic9-dev download ImageMagick 6.5,Imagick-2.3 -I have compiled ImageMagic and install- I have compiled Imagick and install- add .so to my php.ini fileI see this in phpinfo() output:imagick moduleenabledimagick module version 2.3.0imagick classes Imagick, ImagickDraw, ImagickPixel, ImagickPixelIteratoretc.It seems to be ok, but when I try call a imageick function i get this error message:Class Imagick’ not found in What can I do?Thx,cyrip

Leave a Reply

Your email address will not be published. Required fields are marked *

*

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>