Perl Monk, Perl Meditation | |
PerlMonks |
cleaning up old libs and @INCby danmcb (Monk) |
on Jul 15, 2007 at 22:31 UTC ( [id://626745]=perlquestion: print w/replies, xml ) | Need Help?? |
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 ....
Back to
Seekers of Perl Wisdom
|
|