Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Finding / reinstalling modules

by Anonymous Monk
on Jul 28, 2011 at 12:02 UTC ( #917252=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I've recently upgraded perl from 5.12 (installed from RPM) to 5.14.1 (installed through CPAN).

Since the change, /usr/lib/perl5 and its subdirectories are no longer in my @INC, so half my scripts die because they can't find certain modules ... but if I try to install those modules, CPAN says they're still there.

So, what's the simplest (safe) way to either

  1. Find out where CPAN thinks all my modules are and copy them over
  2. OR
  3. Make CPAN reinstall latest versions of all the modules it thinks I've already got

?

Comment on Finding / reinstalling modules
Re: Finding / reinstalling modules
by derby (Abbot) on Jul 28, 2011 at 12:07 UTC

    Sounds like you're using the cpan script that was part of your 5.12 installation and not the one that's part of your 5.14.1 installation.

    -derby
Re: Finding / reinstalling modules
by tmaly (Monk) on Jul 28, 2011 at 18:27 UTC

    take a look at perlbrew it allows you to manage multiple version of perl

Re: Finding / reinstalling modules
by Anonymous Monk on Jul 29, 2011 at 03:58 UTC

    I've recently upgraded perl from 5.12 (installed from RPM) to 5.14.1 (installed through CPAN).

    As root? You should never upgrade the system perl

    but if I try to install those modules, CPAN says they're still there.

    Well, cpan is probably hardcoded (shebang) to use the 5.12 version of perl, for which, they are installed

    perlbrew is what you should study

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2014-08-30 23:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls