Page 1 of 1

problems using Image::Magick perl module

Posted: 2009-02-04T15:45:06-07:00
by JamesGoh
Im referencing Kyle Shooter's Image::Magick perl module in my perl program, however
each time I attempt to compile and run the perl program, it spits out something along these lines

Can't load /usr/lib/perl5/../../Magick.so for module Image::libMagickCore.so.2. No such file or directory. Required libraries are not installed or not installed properly

After doing a bit of searching, I found Magick.so under the correct directory, so it is there. I have even tried moving Magick.so to the same directory as libMagickCore.so.2 and the compiler still complained

During installation of PerlMagick, I got a message about the package not being able to find
-lperl library. Could this be the reason why Image::Magick is not running properly in my perl program ?

Re: problems using Image::Magick perl module

Posted: 2009-02-04T16:48:43-07:00
by magick
Did you install the shared version of ImageMagick-- its the default. If so, you should have installed libMagickCore.so.2. You might need to run ldconfig to update the dynamic link path.

Re: problems using Image::Magick perl module

Posted: 2009-02-04T17:08:24-07:00
by JamesGoh
libMagickCore.so.2 was there.

I just had to run ldconfig to update the dynamic link path and it was all good :)

thanks

Re: problems using Image::Magick perl module

Posted: 2011-09-01T10:27:17-07:00
by prash358
Can you please let me know how did you the ldconfig,because i too got same errors as you.