Installing Perl modules without privileges

This is for me, really. To install Perl modules without priveleges privileges do the following;

wget http://location-of-perl-module.com/perl-module.tar.gz
tar xfzv perl-module.tar.gz
cd perl-module
perl Makefile.PL PREFIX=`pwd`
make
make test
make install

Then, add to the top of the perl script

use lib “`pwd`/lib/”;

Where `pwd` is the directory you have write access to, i’m just being lazy.

Leave a Reply