problems using Image::Magick perl module

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
JamesGoh

problems using Image::Magick perl module

Post 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 ?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: problems using Image::Magick perl module

Post 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.
JamesGoh

Re: problems using Image::Magick perl module

Post 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
prash358
Posts: 36
Joined: 2011-09-01T09:40:03-07:00
Authentication code: 8675308

Re: problems using Image::Magick perl module

Post by prash358 »

Can you please let me know how did you the ldconfig,because i too got same errors as you.
Post Reply