WiseGuru has asked for the wisdom of the Perl Monks concerning the following question:

I have a problem with perlmagick not finding a module, then crahsing, how do i update the system so as perlmagick can find the modules, the error is below:-

# make
perl demo.pl
Can't load '/usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi/auto/Image/Magick/Magick.so' for module Image::Magick: libMagickCore.so.1: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.10.0/i386-linux-thread-multi/DynaLoader.pm line 203.
at demo.pl line 5
Compilation failed in require at demo.pl line 5.
BEGIN failed--compilation aborted at demo.pl line 5.
Out of memory!
Callback called exit at /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi/Image/Magick.pm line 42.
END failed--call queue aborted at demo.pl line 5.
make: *** all Error 12

thanks
Andrew

www.arobcorp.com

Replies are listed 'Best First'.
Re: Perlmagick not finding a module
by almut (Canon) on Nov 08, 2008 at 03:27 UTC

    You need to install the ImageMagick libraries from your distro's repositories. (The "Out of memory" is an unfortunate side effect of them not being found.)

      when you say 'distro', do you mean fedora, or imagemagick?

        Fedora... or Suse, Debian, Ubuntu, etc. — For example, with Debian/Ubuntu you'd just run (as root) apt-get install libmagickcore1 (or use synaptic, or aptitude). Note that there are other related packages like libmagick10 and libmagickwand1, which you might need to install as well.  Also, in case you're trying to build Perlmagick (as opposed to just getting to run a prebuilt version), you're going to need the respective *-dev packages, too (those contain the header files).  Finally, don't be confused by the fact that there's another whole set of similar packages for GraphicsMagick, which is a successor of ImageMagick...

        Clear as mud? ;)

        (From the top of my head I can't tell what the respective package names are in Fedora land, but maybe someone else can jump in...)

Re: Perlmagick not finding a module
by Anonymous Monk on Nov 08, 2008 at 04:23 UTC