Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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

?

Replies are listed 'Best First'.
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?
[Discipulus]: and milano is our mitteleuropa part..
[choroba]: then an old man came who had a valid ticket to the same compartment and they fought
[Corion]: hippo: Yeah, I might take that one so I don't get out of London too late if it comes to that ;)
[choroba]: she called carabinieri, the train had to stop and we had to testify to them. But we didn't miss the plane in the end.
[karlgoethebier]: good morning *
[Discipulus]: miracle choroba! and unbelivalbe carabinieri understood you
[choroba]: They even sent me a letter whether I'd be willing to come to Milano to testify in the court
[choroba]: I replied with "yes" but the trial never happened
[Discipulus]: dont be so sure choroba.. 11 years is not too long for an Eatalian judgement
[choroba]: I've moved to Prague in the meantime, they can't reach me anymore :-)

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2017-11-20 09:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (286 votes). Check out past polls.

    Notices?