[magick-users] PerlMagick installation trouble

Ron Savage ron at savage.net.au
Fri Aug 24 19:51:22 PDT 2007


Nathan Glenn wrote:

Hi Nathan

 > The exact error message received when I type "perl demo.pl" is:
 > Can't locate Image/Magick.pm in @INC (@INC contains: c:/Perl/site/lib
 > C:/Perl/lib.) at demo.pl line 5.
 > BEGIN failed--compilation aborted at demo.pl line 5.

OK. Please post a tiny program based on the /exact/ code you are trying 
to run. Eg:

#!/usr/bin/perl

use strict;
use warnings;

use Image::Magic; # Deliberate mis-spell.

my $i = Image::Magic->new();

And the error is (look familiar :-):
Can't locate Image/Magic.pm in @INC (@INC contains: 
C:/strawberry-perl/perl/lib C:/strawberry-perl/perl/site/lib .) at 
C:\Temp\x.pl line 6.
BEGIN failed--compilation aborted at C:\Temp\x.pl line 6.

This makes me think Image::Magick is not installed in the Perl you are 
using, but is installed in another version of Perl, as reported by the 
package manager you mention.

-- 
Ron Savage
ron at savage.net.au
http://savage.net.au/


More information about the Magick-users mailing list