Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2019-02-17 23:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I use postfix dereferencing ...









    Results (98 votes). Check out past polls.

    Notices?