Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: How does @INC get set?

by fglock (Vicar)
on Nov 10, 2004 at 16:56 UTC ( [id://406721]=note: print w/replies, xml ) Need Help??


in reply to How does @INC get set?

Please check that you are not mistyping the module name - Image::Magick

Replies are listed 'Best First'.
Re^2: How does @INC get set?
by Bone_Scavenger (Novice) on Nov 10, 2004 at 18:42 UTC
    Sorry, I mis-spelled it in this thread. The cgi script that is looking for the Image::Magick module spelled it correctly.

    Is PerlMagick also needed for Image::Magick? The exact message I get when I run the cgi script is:

    Your server does not have Image::Magick installed, or Image::Magick re +quires another module that is not installed.
    So, if PerlMagick is a required module of Image::Magick, then that might explain it.

      You could try to figure out if it is Image::Magick that is missing, or if it is some dependency. "PerlMagic" was the parent-poster's way of pointing out that there is a library called "ImageMagick", but that it is separate from the Perl module "Image::Magick".

      You might try this quickie script to dump the actual error to your browser:

      #!/usr/bin/perl BEGIN { require POSIX; local $SIG{__DIE__} = sub { print "Content-type: text/plain\n\n@_"; POSIX::_exit(0); #Needed to prevent HTTP/500 Error }; require Image::Magick; Image::Magick->import(); }

      That should result in a message that looks something like

      Can't locate Image/Magick.pm in @INC (@INC contains: C:\Perl\lib\ C:/Perl/lib C:/Perl/site/lib .) at test-magick.pl line 1.

      Appearring in your browser. It should give you some idea if Image::Magick is missing (like in the message above), or if one of its dependencies is gone.


      radiantmatrix
      require General::Disclaimer;
      Perl is

        I cut/paste the code (above) into a cgi script (Perlmonks.cgi) which I uploaded to my server. I got the following error (in my server error log)when I tried to run the script.

        "GET /cgi-bin/Perlmonks.cgi HTTP/1.1" 500 636 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)"

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://406721]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-26 00:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found