Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

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


in reply to Can't locate AMOS/AmosLib.pm in @INC

...and don't see the directory I inserted into the PERL5LIB

Did you run the Perl script from the same shell where you exported PERL5LIB?

  • Comment on Re: Can't locate AMOS/AmosLib.pm in @INC

Replies are listed 'Best First'.
Re^2: Can't locate AMOS/AmosLib.pm in @INC
by Jeri (Scribe) on May 18, 2012 at 17:20 UTC
    yes

      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.

        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://971338]
help
Chatterbox?
[shmem]: sounds good.
[shmem]: but I'm crumbling smaller stones. remember...
[stevieb]: I'm working on it to fatten it up and make it more reliant so I can finalize my Raspberry Pi automated build system for that software :) It's all well and fun, until I try to make it work with Windows lol
[shmem]: "debugging a program is more difficult than to write it in the first place. If you code your program as smart as you are, you are, by definition, too dumb to debug it."
[stevieb]: I literally laughed. That's good :) Perhaps I just need to go climb another mountain and forget about it

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2017-03-28 22:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (342 votes). Check out past polls.