K
kj
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.
[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.