Subject: | Install paths differ from default perl 5.10 @INC |
Hi!
Somehow CPAN.pm installs itself and other modules into
other directories than a default @INC contains. Therefore
after updating CPAN.pm it is not found.
I did:
# install a Perl 5.10
PREFIX=/opt/foo
tar xzf perl-5.10.0.tar.gz
cd perl-5.10.0
make distclean
sh Configure -des -Dprefix=$PREFIX -Duserelocatableinc
make -j17
make test
time make install
/opt/foo/bin/perl -V
[...]
@INC:
/opt/artemis.Linux.x86_64/lib/perl5/5.10.0/x86_64-linux
/opt/artemis.Linux.x86_64/lib/perl5/5.10.0
/opt/artemis.Linux.x86_64/lib/perl5/site_perl/5.10.0/x86_64-linux
/opt/artemis.Linux.x86_64/lib/perl5/site_perl/5.10.0
.
export PERL_AUTOINSTALL="--defaultdeps"
# configure CPAN.pm by overwriting its Config
#
# I will attach my default_CPAN_Config.pm to the bug, but it
# basically only configures a MINICPAN repo, PREFIX and UNINST.
#
cpancfg=`find $PREFIX/lib/ -name Config.pm | grep 'CPAN\/Config.pm'`
cp $builddir/default_CPAN_Config.pm $cpancfg
$PREFIX/bin/cpan CPAN
BUMMER!
Now the new CPAN.pm is outside @INC:
find /opt/foo/lib/ -name CPAN.pm
==> /opt/foo/lib/perl5/CPAN.pm
That also happens with other modules.
It just "bummers" more with CPAN.pm itself. :-)
Thanks.
Kind regards,
Steffen
--
Steffen Schwigon <ss5@renormalist.net>
Dresden Perl Mongers <http://dresden-pm.org/>
Deutscher Perl-Workshop <http://www.perl-workshop.de/>