Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.

Image::Magick - missing

by mowax (Initiate)
on Jul 09, 2008 at 13:34 UTC ( [id://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 Can't locate Image/ in @INC (@INC contains: C:/Perl/site/lib +C:/Perl/lib .) at C:/Perl/site/lib/Image/Magick/Thumbnail/ li +ne 8. Compilation failed in require at line 3. BEGIN failed--compilation aborted at line 3.

Searching under C:\Perl for bears no results. How do I get (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 - missing
by marto (Cardinal) on Jul 09, 2008 at 13:41 UTC
    Try the following from the command line:

    ppm install

    Also see PPM::Repositories.

    Hope this helps

Re: Image::Magick - 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 ( 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 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/ means it can't find, not that it can't load

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-06-13 08:13 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.