Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: CPAN ask me install a package repeatly

by tangent (Priest)
on Feb 22, 2012 at 21:58 UTC ( #955634=note: print w/replies, xml ) Need Help??


in reply to CPAN ask me install a package repeatly

I think your problem may be in your shell config. If you look below you will see how I get two different versions of CPAN.

For my Perl 5.14
$ sudo perl -MCPAN -e shell Password: cpan shell -- CPAN exploration and modules installation (v1.9600) cpan>
However, if I invoke Perl with /usr/bin/perl
$ sudo /usr/bin/perl -MCPAN -e shell Password: cpan shell -- CPAN exploration and modules installation (v1.7602) cpan>
I get the CPAN that comes with my system Perl - that's probably what you want so you need to restore your shell config so it uses your system Perl. You could try this (outside the CPAN shell)
sudo /usr/bin/perl -MCPAN -e 'install File::Basename'
BTW I would highly recommend perlbrew for installing non-system Perl

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://955634]
help
Chatterbox?
[Eily]: that's the internet for you LanX
[Eily]: and I'm pretty sure there's a rule somewhere that states that the stupider the idea, the more likely it is to already have been done
zentara is thinking of moving to Mars to esacpe it all
[LanX]: Zentara eq Dr Manhatten ?
[zentara]: more like Dr. Helion3 :-)
[LanX]: Eily: though I haven't found a a reference for this one yet : Re^2: OT: Got fired this week (orange)

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (13)
As of 2017-03-27 15:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (320 votes). Check out past polls.