document updated 12 years ago, on Apr 5, 2012
How to bootstrap cpanm, local::lib, or perlbrew:
perlbrew
As a normal user:
- curl -L http://xrl.us/perlbrewinstall | bash
- to confirm: it should appear at ~/perl5/perlbrew/bin/perlbrew
cpanm
As a normal user:
- curl -L http://cpanmin.us | perl - App::cpanminus
- to confirm: it should appear at ~/perl5/bin/cpanm
Or, as root:
curl -L http://cpanmin.us | perl - --sudo App::cpanminus
local::lib
As a normal user:
- install cpanm (see above)
- cpanm --local-lib=~/perl5 local::lib
- add to ~/.bashrc: eval $(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)
- to confirm: echo $PERL5LIB