Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

CPAN forcing upgrade from 5.6.0 to 5.6.1?

posted by pudge on 2001.07.19 18:49   Printer-friendly
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;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.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • IIRC, this was an issue in older versions of CPAN. Newer versions do not try to force this
  • 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.
  • 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.


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

    -- ask bjoern hansen [], !try; do();