Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: Can't locate AMOS/AmosLib.pm in @INC

by Eliya (Vicar)
on May 18, 2012 at 17:59 UTC ( #971349=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Can't locate AMOS/AmosLib.pm in @INC
in thread Can't locate AMOS/AmosLib.pm in @INC

Well, if this is true, your perl is broken :)  Or your script resets @INC.  Or your script runs in taint mode (-T).  Or you showed the wrong error message in your OP.

Items in PERL5LIB should otherwise always appear in the reported @INC:

$ PERL5LIB=/foo/bar perl -MNot::Exist -e1 Can't locate Not/Exist.pm in @INC (@INC contains: /foo/bar /etc/perl / +usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 + /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/ +lib/site_perl .). BEGIN failed--compilation aborted.

As you can see, /foo/bar has been added to @INC.


Comment on Re^3: Can't locate AMOS/AmosLib.pm in @INC
Select or Download Code
Re^4: Can't locate AMOS/AmosLib.pm in @INC
by Jeri (Scribe) on May 18, 2012 at 20:52 UTC
    Problem solved. Perl was downloaded twice on my computer. With one perl @INC can find the .pm after the export.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2014-07-10 01:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (198 votes), past polls