Perlmagick Segmentation fault

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
asarian

Re: Perlmagick Segmentation fault

Post by asarian »

tux wrote: Hi
I had installed following packages on fedore core 4 successfully
ImageMagick-devel-6.2.2.0-3.fc4.2
ImageMagick-6.2.2.0-3.fc4.2
ImageMagick-c++-6.2.2.0-3.fc4.2
ImageMagick-perl-6.2.2.0-3.fc4.2
ImageMagick-c++-devel-6.2.2.0-3.fc4.2

I able to convert logo.jpg to logo.gif


When I tired to use PerlMagic it give the following error.

Can't load '/usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi/auto/Image/Magick/Magick.so' for module Image::Magick: libMagick.so.10: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.6/i386-linux-thread-multi/DynaLoader.pm line 230.
at ./test.pl line 2
Compilation failed in require at ./test.pl line 2.
BEGIN failed--compilation aborted at ./test.pl line 2.
Out of memory!

Then I tried to run the code it give following error

./test.pl
Segmentation fault

thanks in advance

--tux


Got the same issue, at first. But I had installed ImageMagick in a non-default dir. Just make sure your lib path is extended to include the path where libMagick.so.10 resides. In my case,

/sbin/ldconfig -m /usr/local/ImageMagick/lib

You shouldn't have to use symlinks. After all, creating symlinks in cases like these is just another way of saying your ld path is not properly configured.

- Mark
Post Reply