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

Re: How to change @INC permanently?

by z3d (Scribe)
on Aug 24, 2005 at 17:00 UTC ( #486289=note: print w/replies, xml ) Need Help??


in reply to How to change @INC permanently?

You'll need to rebuild perl (and libperl if it was built separately). Here's an example snippet of the patch used by a distro i work with:
--- perl.c.orig 2005-07-26 13:04:54.000000000 -0400 +++ perl.c 2005-07-26 13:05:05.000000000 -0400 @@ -4397,9 +4397,9 @@ S_init_perllib(pTHX) incpush(APPLLIB_EXP, TRUE, TRUE, TRUE); #endif -#ifdef ARCHLIB_EXP - incpush(ARCHLIB_EXP, FALSE, FALSE, TRUE); -#endif + /* for configuration where /usr is mounted ro (CPAN::Config, Net: +:Config) */ + incpush("/etc/perl", FALSE, FALSE, TRUE); + #ifdef MACOS_TRADITIONAL { Stat_t tmpstatbuf;



"I have never written bad code. There are merely unanticipated features."

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2020-05-30 13:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (172 votes). Check out past polls.

    Notices?