Can't locate Image/Magick.pm in @INC - Confused

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
rkreiple
Posts: 1
Joined: 2015-12-21T10:47:29-07:00
Authentication code: 1151

Can't locate Image/Magick.pm in @INC - Confused

Post by rkreiple »

Installed via ppm, Apache-ImageMagick Version: 2.0b7, Windows 10,

Using ActiveState

ImageMagick.pm ends up in C:\Perl\site\lib\Apache

PERL5LIB contains PERL5LIB=C:/Perl/site/lib;C:/Perl/lib

A script that works fine on my hosting site (line 8 -> use Image::Magick;), errors out locally:

Can't locate Image/Magick.pm in @INC (you may need to install the Image::Magick module) (@INC contains: C:/Perl/site/lib C:/Perl/lib .) at C:\inetpub\wwwroot\perlcsstest\admin\upload6.pl line 8.
BEGIN failed--compilation aborted at C:\inetpub\wwwroot\perlcsstest\admin\upload6.pl line 8.

First thing I see is ImageMagick.pm isn't the same as Magick.pm, so I create C:\Perl\site\lib\Image, copy and rename ImageMagick.pm to Magick.pm into C:\Perl\site\lib\Image. I also edit the file to change the internal package name.

So I get the error to stop, there are other issues I need to address, looks like the '/' vs '\' path problem, but

Now I ask, where should I be getting the "official or ideal" package from? And how to get it installed?
Post Reply