Page 1 of 1

runtime problem with perlmagic

Posted: 2015-08-08T03:22:46-07:00
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

Re: runtime problem with perlmagic

Posted: 2015-08-08T04:20:22-07:00
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.

Re: runtime problem with perlmagic

Posted: 2015-08-08T05:58:40-07:00
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.

Re: runtime problem with perlmagic

Posted: 2015-08-09T01:26:09-07:00
by fransfb
shouldn't the configuration of included libraries not be part of the install script?