Monday, April 1, 2013

How to use CPAN as a non-root user


wget -O- http://cpanmin.us | perl - -l ~/perl5 App::cpanminus local::lib
eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib`
echo 'eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib`' >> ~/.profile

cpanm Module::name
e.g. cpanm List::Permutor

No comments:

Post a Comment