Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Just another Perl shrine
 
PerlMonks  

perl -c and use lib

by geektron (Curate)
on May 27, 2004 at 14:50 UTC ( [id://357014]=perlquestion: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.

geektron has asked for the wisdom of the Perl Monks concerning the following question:

i have a mod_perl app that uses a custom set of libs (like any good mod_perl app should), but when i try to test compilation at the command line ( perl -c module ) compilation will (expectedly) fail because the libs aren't in the default @INC.

i think there's a way to alter @INC on the command line, but i can't remember it.

Replies are listed 'Best First'.
Re: perl -c and use lib
by Belgarion (Chaplain) on May 27, 2004 at 14:54 UTC

    perl -Idir will prepend dir to @INC. Is this what you're looking for?

Re: perl -c and use lib
by mifflin (Curate) on May 27, 2004 at 14:56 UTC
    perl -I/path/to/libs -c perlprog
    or
    set the env var PERL5LIB
Re: perl -c and use lib
by biosysadmin (Deacon) on May 27, 2004 at 15:29 UTC
    You can also set the $PERL5LIB environment variable if you like. Here's an example in bash:
    export PERL5LIB=/home/biosysadmin/perl_lib:/usr/local/perl_lib
    Hope this helps. :)
Re: perl -c and use lib
by PodMaster (Abbot) on May 27, 2004 at 19:14 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://357014]
Approved by kvale
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.