rinceWind has asked for the wisdom of the Perl Monks concerning the following question:
I have an instance where I have needed to build my own perl. The existing perl installed by apt-get (sarge) resides in /usr/bin, and is 5.8.4. The perl I have built is 5.8.7, and I took the defaults and installed this to /usr/local/bin (libraries to /usr/local/lib/perl5 etc.)
My new perl comes first in the path, and that is the one that I want to use for everything. CPAN installs work fine, as do CPANPLUS. My problem is that I have installed some more distributions with apt-get, which have perl bindings. These have gone into /usr/lib/ and are only visible from 5.8.4.
I know I can repoint PERL5LIB to add the lib paths, but I am looking for a more permanent solution.
Should I rebuild my perl with different config options, to give me an @INC with the other lib directories included?
Should I install my perl over the top of the one in /usr/bin and /usr/lib? (this seems more risky to me)
What's the best way of dealing with this?
--
Oh Lord, won’t you burn me a Knoppix CD ?
My friends all rate Windows, I must disagree.
Your powers of persuasion will set them all free,
So oh Lord, won’t you burn me a Knoppix CD ?
(Missquoting Janis Joplin)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A problem with two perls on a Debian system
by polettix (Vicar) on Mar 12, 2006 at 12:10 UTC | |
|
Re: A problem with two perls on a Debian system
by idsfa (Vicar) on Mar 12, 2006 at 20:49 UTC | |
|
Re: A problem with two perls on a Debian system
by ioannis (Abbot) on Mar 12, 2006 at 11:04 UTC | |
by rinceWind (Monsignor) on Mar 12, 2006 at 11:08 UTC | |
by ioannis (Abbot) on Mar 12, 2006 at 11:13 UTC |