Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Image::Magick - Magick.pm missing

by mowax (Initiate)
on Jul 09, 2008 at 13:34 UTC ( #696453=perlquestion: print w/replies, xml ) Need Help??

mowax has asked for the wisdom of the Perl Monks concerning the following question:

I have created a script on a Win32 that (among other things) is supposed to resize a JPG picture. Using PPM, I have installed Image::Magick::Thumbnail::Fixed to do this. However when I try and run the script I get:

C:\Inetpub\wwwroot\cgi-bin>perl re.pl Can't locate Image/Magick.pm in @INC (@INC contains: C:/Perl/site/lib +C:/Perl/lib .) at C:/Perl/site/lib/Image/Magick/Thumbnail/Fixed.pm li +ne 8. Compilation failed in require at re.pl line 3. BEGIN failed--compilation aborted at re.pl line 3.

Searching under C:\Perl for Magick.pm bears no results. How do I get Magick.pm (assuming that is the problem)? I can't see it through PPM and I don't have any compilers to install it manually. Any solutions? Thanks

Replies are listed 'Best First'.
Re: Image::Magick - Magick.pm missing
by marto (Cardinal) on Jul 09, 2008 at 13:41 UTC
    Try the following from the command line:

    ppm install http://www.bribes.org/perl/ppm/Image-Magick.ppd

    Also see PPM::Repositories.

    Hope this helps

    Martin
Re: Image::Magick - Magick.pm missing
by ggvaidya (Pilgrim) on Oct 13, 2008 at 05:33 UTC
    Hi mowax,

    I stumbled upon your question while searching for Image::Magick information. Two tips:

    1. Perl gives the "Can't locate" error when it can't properly load the module - for instance, if the Perl module (Magick.pm) exists, but refers to a library file or DLL which can't be found or which gives an error during initialization. I'm sure there's a better way to debug these problems than the one I use, but I've used SysInternals' Process Monitor in the past to track down the referenced DLLs which were having problems loading properly.
    2. The quickest way to get PerlMagick on Windows is to get the binary release from ImageMagick.org. The installer searches for ActivePerl, and - if found - automatically installs PerlMagick's modules into the correct place.

    Hope that helps (if you haven't figured out the problem in the last three months!)

      Perl gives the "Can't locate" error when it can't properly load the module ....
      No. Cant locate Image/Magick.pm means it can't find Magick.pm, not that it can't load Magick.pm

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://696453]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2020-10-27 07:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (256 votes). Check out past polls.

    Notices?