CPAN forcing upgrade from 5.6.0 to 5.6.1?

pudge on 2001-07-19T23:49:28

kjeldahl writes "I've been using "perl -MCPAN -e shell" to auto install a lot of perl stuff that some of my software use. It used to be so easy; flip that CD onto the machine, load up the OS (usually RedHat or Mandrake) and have perl CPAN fix the rest. This used to work so well. Now it does not any longer. For some reason, sometimes when I install some perl module (very often MLDBM, but I am not sure) CPAN decides I need to upgrade perl 5.6.1. If I stop it and install using (inside the CPAN shell) "look MLDBM", and the usual perl Makefile.pl;make;make test;make install everything seems to build and work fine. At least until I hit another perl module that try to do me a favour by upgrading to 5.6.1.

It is not that I do not want to upgrade. However, for a lot of machines it is simply not worth the effort. I do not want to recompile the web server and do the mod_perl and ssl stuff manually; I just want to install the stuff on one of my development laptops.

So, to summarize: Can this behaviour be turned off? Is there any reason why it _insists_ on installing 5.6.1 when I do not want it to? Is there any MAJOR flaw in 5.6.0 that make it unusable?"


This problem never seems to go away, and I don't know the solution.


Upgrade CPAN

mbadolato on 2001-07-20T03:26:31

IIRC, this was an issue in older versions of CPAN. Newer versions do not try to force this

Re:Upgrade CPAN

kjeldahl on 2001-07-20T06:36:34

Ok, hopefully that solves it then. install Bundle::CPAN (using the "old" CPAN module) definitively also wants to put perl 5.6.1 in there, but hopefully look+installing manually works better. Thanks for the tip.

Re:Upgrade CPAN

lachoy on 2001-07-20T11:29:50

My procedure for doing this:

perl -MCPAN -e shell
install CPAN
install Bundle::CPAN
install Whatever::Module

Doing the install CPAN as opposed to the install Bundle::CPAN might seem counterintuitive but it ensures that you don't pull in any of the dependencies before pulling in the newest CPAN version, which usually takes care of the perl upgrade issue.

Chris

Re:Upgrade CPAN

ask on 2001-07-22T02:34:29

You need "reload CPAN" between install CPAN and install Bundle::CPAN; other than that you are right.