runtime problem with perlmagic

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
fransfb
Posts: 3
Joined: 2015-08-08T03:08:31-07:00
Authentication code: 1151

runtime problem with perlmagic

Post by fransfb »

I seem to have a problem that I cannot resolve myself.
I installed ImageMagick-6.9.1-10 and PerlMagick-6.89 successfully on a CentOS 7 system. Once I start a simple perl script that initiates the "use Image::Magick;", the program aborts with the following error:

Can't load '/usr/local/lib64/perl5/auto/Image/Magick/Magick.so' for module Image::Magick: libMagickCore-6.Q16.so.2: cannot open shared object file: No such file or directory at /usr/lib64/perl5/DynaLoader.pm line 190.

I checked and the '/usr/local/lib64/perl5/auto/Image/Magick/Magick.so' is available and has read and execute permissions for the world.

Help to resolve this issue is highly appreciated. please let me know If you need more info or things I can verify.

I have been searching the internet but no luck in finding the solution. based on advise elsewhere I executed the command ldconfig /usr/local/lib64 without any change in outcome.


Frans
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: runtime problem with perlmagic

Post by dlemstra »

It looks like Perl is unable to find 'libMagickCore-6.Q16.so.2', you should have the directory that contains this file in your library path.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
fransfb
Posts: 3
Joined: 2015-08-08T03:08:31-07:00
Authentication code: 1151

Re: runtime problem with perlmagic

Post by fransfb »

thank you. I did 'ldconfig /usr/local/lib' and the error is gone. the message put me on the wrong foot I guess. Problem solved.
fransfb
Posts: 3
Joined: 2015-08-08T03:08:31-07:00
Authentication code: 1151

Re: runtime problem with perlmagic

Post by fransfb »

shouldn't the configuration of included libraries not be part of the install script?
Post Reply