Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2019-04-18 16:51 GMT
Find Nodes?
    Voting Booth?
    I am most likely to install a new module from CPAN if:

    Results (103 votes). Check out past polls.

    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!