Page 1 of 1

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

Posted: 2015-12-21T11:18:22-07:00
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?