CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Fun With Perl: Perl Quizzes - Learn Perl the Fun Way:
can't locate pm file

 



chefchanyu
New User

Aug 28, 2011, 9:20 PM

Post #1 of 2 (71730 views)
can't locate pm file Can't Post

Hi:

I got dumper2.pm and dumper3.pl on server A same dir, when I run the dumper3.pl on server B via ssh "ssh me@serverA perl ~/dumper3.pl"
it came this error message:

Can't locate dumper2.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/i86pc-solaris /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/i86pc-solaris /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at /export/home/me/externalRRD/TEST/dumper3.pl line 7.
BEGIN failed--compilation aborted at /export/home/me/externalRRD/TEST/dumper3.pl line 7 (#1)
(F) You said to do (or require, or use) a file that couldn't be
found. Perl looks for the file in all the locations mentioned in @INC,
unless the file name included the full path to the file. Perhaps you
need to set the PERL5LIB or PERL5OPT environment variable to say where
the extra library is, or maybe the script needs to add the library name
to @INC. Or maybe you just misspelled the name of the file. See
perlfunc/require and lib.

Uncaught exception from user code:
Can't locate dumper2.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/i86pc-solaris /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/i86pc-solaris /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at /export/home/me/externalRRD/TEST/dumper3.pl line 7.
BEGIN failed--compilation aborted at /export/home/d353202/externalRRD/TEST/dumper3.pl line 7.
at /export/home/me/externalRRD/TEST/dumper3.pl line 7


please help.


FishMonger
Veteran / Moderator

Aug 29, 2011, 9:26 AM

Post #2 of 2 (71721 views)
Re: [chefchanyu] can't locate pm file [In reply to] Can't Post

Where is the module located?

Do you have a 'use lib' statement in dumper3.pl?

Can you post the first 7 lines of the script?

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives