Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Cant find modules after upgrade

by jhourcle (Prior)
on Feb 09, 2016 at 18:34 UTC ( #1154754=note: print w/replies, xml ) Need Help??


in reply to Cant find modules after upgrade

The problem is that cpan will still be using whatever version of perl that you installed it with. You can check which version it's trying to install modules for by calling cpan --version.

You'll get a message like:
$ cpan --version /usr/bin/cpan version 1.61 calling Getopt::Std::getopts (version 1.07 +[paranoid]), running under Perl version 5.18.2. [Now continuing due to backward compatibility and excessive paranoia +. See 'perldoc Getopt::Std' about $Getopt::Std::STANDARD_HELP_VERSION +.]

To make sure that you're calling the CPAN shell with a specific version, you should call it using the specific version of perl, rather than the 'cpan' script: /path/to/perl -MCPAN -e shell.

Also note that you can run into the same problem with cpanm.

Replies are listed 'Best First'.
Re^2: Cant find modules after upgrade
by cbtshare (Scribe) on Feb 10, 2016 at 19:00 UTC
    thank you using the cpan from the new location worked.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1154754]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2019-07-23 11:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?






    Results (24 votes). Check out past polls.

    Notices?