How can I use CPAN as a non-root user?

The easiest method I have found so far is to say 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 echo ‘export MANPATH=$HOME/perl5/man:$MANPATH’ >> ~/.profile This assumes your profile is named .profile, you may need to change that to be .bash_profile, … Read more

How can I use a new Perl module without install permissions?

From perlfaq8: How do I keep my own module/library directory?: When you build modules, tell Perl where to install the modules. For C-based distributions, use the INSTALL_BASE option when generating Makefiles: perl Makefile.PL INSTALL_BASE=/mydir/perl You can set this in your CPAN.pm configuration so modules automatically install in your private library directory when you use the … Read more

How can I install a CPAN module into a local directory?

Other answers already on Stackoverflow: How do I install modules locally without root access… How can I use a new Perl module without install permissions? From perlfaq8: How do I keep my own module/library directory? When you build modules, tell Perl where to install the modules. For Makefile.PL-based distributions, use the INSTALL_BASE option when generating … Read more