Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Use cpanm and local::lib

by dolmen (Beadle)
on Sep 11, 2013 at 14:55 UTC ( #1053505=note: print w/replies, xml ) Need Help??


in reply to Installing CPAN without root access

Bootstrap:
$ PATH="$PATH:~/perl5/bin" $ export PERL5LIB=~/perl5/lib/perl5 $ export PERL_MB_OPT="--install_base '$HOME/perl5'" $ export PERL_MM_OPT="INSTALL_BASE=$HOME/perl5" $ curl -L http://cpanmin.us | perl - -l ~/perl5 App::cpanminus local:: +lib
Then adapt your .profile for local::lib and cpanm by adding this line:
eval $(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)
Now you can just do: cpanm any-module

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1053505]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2017-08-17 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (281 votes). Check out past polls.

    Notices?