Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Cant find modules after upgrade

by jhourcle (Prior)
on Feb 09, 2016 at 18:34 UTC ( [id://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 (Monk) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1154754]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (7)
As of 2024-04-19 10:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found