Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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?
thezip switches the jolokia powder with Folgers Crystals...
[Michael W]: So i can read ok from this how do i put data back inmy @Variables = ( $Map_Request_Date, $Map_Due_Date,$Map _Cutover_Date,$Map _Complete_Date,$Ma p_Approved_Date);
[Corion]: Michael_W: $Variables[0] = $Map_Request_Date; $Variables[1] = $Map_Due_Date; ...
[choroba]: ( $Map_Request_Date, $Map_Due_Date,$Map _Cutover_Date,$Map _Complete_Date,$Ma p_Approved_Date) = @Variables;?

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2017-04-27 15:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (509 votes). Check out past polls.