For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > May 2004 > CPAN.pm configuration









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author CPAN.pm configuration
kj

2004-05-24, 3:30 pm





On my system I have Perl 5.6.1 under /usr and Perl 5.8.3 under /opt
[1]. This has broken my ability to use CPAN.pm. More specifically,
almost invariably the "make test" step fails. This is because the
command that runs the test script uses flags such as -I/usr/lib/perl/5.6.1,
when it should be using -I/opt/lib/perl/5.8.3, etc. And also, even
though I bring up the CPAN shell with "/opt/bin/perl -MCPAN -e
shell", during the "make test" part the tests scripts get run with
/usr/bin/perl instead of with /opt/bin/perl (although I'm less sure
that this is the case every time).

How do I configure things such that CPAN.pm uses the Perl (executable
and libraries) that live under /opt and not the Perl under /usr?

Thanks!

kj

[1] Long story: basically, my stable-release Debian system uses
5.6.1 whenever it needs to use Perl, but I prefer to use 5.8.3;
the Perl 5.8.x distributed with Debian's testing release is compiled
with threads, which I do not want, so instead of upgrading my
system's Perl to testing, I installed 5.8.3 under /opt.

--
NOTE: In my address everything before the period is backwards.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com