Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: cpan trouble, where to start?

by Anonymous Monk
on Jan 09, 2013 at 08:44 UTC ( [id://1012406]=note: print w/replies, xml ) Need Help??


in reply to cpan trouble, where to start?

Try  curl -L http://cpanmin.us | perl - --self-upgrade

Replies are listed 'Best First'.
Re^2: cpan trouble, where to start?
by PerlPeer (Novice) on Jan 09, 2013 at 09:46 UTC
    Hi, I ran your command, and it started nicely, but than ran in trouble.
    The first problem seems to be a path setting:
    % Total % Received % Xferd Average Speed Time Time Time + Current Dload Upload Total Spent Left + Speed 100 327k 100 327k 0 0 93034 0 0:00:03 0:00:03 --:--: +-- 175k You are running cpanm from the path where your current perl won't inst +all executables to. Because of that, cpanm --self-upgrade won't upgrade the version of cpa +nm you're running. cpanm path : - Install path : /usr/local/bin It means you either installed cpanm globally with system perl, or use +distro packages such as rpm or apt-get, and you have to use them again to upgrade cpanm. ! ! Can't write to /Library/Perl/5.10.0 and /usr/local/bin: Installing m +odules to /Users/arend/perl5 ! To turn off this warning, you have to do one of the following: ! - run me as a root or with --sudo option (to install to /Library/P +erl/5.10.0 and /usr/local/bin) ! - Configure local::lib your existing local::lib in this shell to s +et PERL_MM_OPT etc. ! - Install local::lib by running the following commands ! ! cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/per +l5/lib/perl5/ -Mlocal::lib) !
    After that it detects a shipload of non present dependencies that eventually fail.
    Every time is referred to /Users/arend/.cpanm/build.log (not copied here, but if you want it I'll put it in)

    I did not do the perl installation on my computer. It was already available when I started using my mac.
    But perhaps best to start with fixing the path problem?
    The terminal suggests several options. How should I approach the problem?
      Don't mess with the system perl then, install your own as marto advises

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-04-19 13:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found