danmcb has asked for the wisdom of the Perl Monks concerning the following question:
hi
I have a debian box that I have run for about 3 years now. Innumerable modules and perls have run on it (including for a while one I built from scratch to use with apache, and foolishly wrote over the system perl) ...
I see now that @INC is kind of a mess, lots and lots of lib paths, including some to 5.8.7 that probably need to be cleaned.
I also have a problem that I install a module (encoding::warnings) with CPAN, and yet it puts it somewhere where the system perl can't find it. (its a matter of a /usr/local/lib/perl5/ ... where @INC only has /usr/local/lib/perl/ ... )
so it's all foobar.
How can I :
1: get CPAN and perl back in sync (they are both recent installs via apt/CPAN from the last few days)
2: keep only what *should* be in @INC, and remove refs to obsolete perls (allowing me to merrily delete the old libs?)
thanks!! I have searched, I have sought ... but clear instructions have I found on how CPAN decides where to put libraries, and how perl gets @INC, which is obviously rather related ....
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: cleaning up old libs and @INC
by daxim (Curate) on Jul 15, 2007 at 23:44 UTC | |
by bart (Canon) on Jul 16, 2007 at 12:12 UTC | |
by daxim (Curate) on Jul 16, 2007 at 18:55 UTC | |
by danmcb (Monk) on Jul 16, 2007 at 03:06 UTC | |
by syphilis (Archbishop) on Jul 16, 2007 at 03:37 UTC | |
by danmcb (Monk) on Jul 16, 2007 at 04:18 UTC |