Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

How to prevent CPAN from updating Perl

by coolmichael (Deacon)
on Sep 21, 2001 at 11:41 UTC ( #113825=perlquestion: print w/replies, xml ) Need Help??
coolmichael has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to install Net::FTP and some other modules on a Linux Machine with Perl 5.005_03. Everytime I try to use it wants to update Perl to 5.6.1. I only want to install specific modules, not upgrade perl.

Is there any way to do this?

Replies are listed 'Best First'.
Re: How to prevent CPAN from updating Perl
by merlyn (Sage) on Sep 21, 2001 at 12:24 UTC
      Do you happen to know which version and above don't try to update Perl? Thanks.

        The most recent version avilable on CPAN is 1.59. I wouldn't recommend doing a piecewise upgrade: just get the most recent version available.


      Thank you merlin. I tried that, but installing the new also tried to install the new perl. Does this mean I'll have to do that by hand?


        Try hitting Ctrl-c when it begins to download the new perl. You might get an error message or two, but it should continue on with the module install (w/o upgrading perl itself).


Re: How to prevent CPAN from updating Perl
by alien_life_form (Pilgrim) on Sep 21, 2001 at 21:06 UTC

    The way I have gone about this is getting the package that's provoking the update to 5.6.1 (which may be IO::Socket, as I recall) and do a manual upgrade - then rerun CPAN - that should do the trick.

    Getting the latest CPAN is sound advice as it stops the former braindead "reinstall perl Yay!" default, but it won't fetch the "last known good" depended upon package for you...


Re: How to prevent CPAN from updating Perl
by strredwolf (Chaplain) on Sep 21, 2001 at 20:53 UTC
    In addition to merlin's suggestion, I would update Perl because of some bugs and lack of Unicode support in 5.0xx. Also, alot of modules require 5.6.0 or greater. The third camel book also is 5.6.x specific.

    Update Perl first.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://113825]
Approved by root
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2018-06-22 04:14 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (121 votes). Check out past polls.