Source:
Http://www.cnblogs.com/itech/archive/2012/12/17/2822044.html
Install your own Perl modules. When you do not have root privileges, you need to install Perl modules into your home directory.
From: http://servers.digitaldaze.com/extensions/perl/modules.html
Installing PERL5 Modules Locally
Normally, the PERL5 module installation procedure includes commands something like these:
% PERL5 makefile.pl
% make
% make Test
% make Install
% make clean
The first command, perl5 makefile.pl, directs PERL5 to create a Makefile for the new module is inst Alling. When installing a PERL5 module locally your must designate the home directory of your PERL5 installation on the CO Mmand line. That information was used by PERL5 to create the makefile. Substitute the following command for perl5 makefile.pl:
% perl5 makefile.pl prefix=/usr/home/USERNAME/usr/local
The value USERNAME above should is replaced with your Virtual Private Server Primary user account name. Installation process is:
% perl5 makefile.pl prefix=/usr/home/USERNAME/usr/local
% make
% make Test
% make Install
% make clean
For older modules it is necessary to designate several and the command line variables the module during Ion
% perl5 makefile.pl prefix=/usr/home/USERNAME/usr/local installprivlib=/usr/home/USERNAME/usr/ LOCAL/LIB/PERL5 installscript=/usr/home/USERNAME/usr/local/bin installsitelib=/usr/home/USERNAME /usr/local/lib/perl5/site_perl installbin=/usr/home/USERNAME/usr/local/bin installman1dir=/usr/ home/USERNAME/usr/local/lib/perl5/man installman3dir=/usr/home/USERNAME/usr/local/lib/perl5/ Man/man3
To save yourself some typing you can create a file and put these variable assignments above on to a file (Filename) something like this:
prefix=/usr/home/USERNAME/usr/local installprivlib=/usr/home/USERNAME/usr/local/lib/perl5 installscript=/usr/home/USERNAME/usr/local/bin installsitelib=/usr/home/USERNAME/usr/local/ Lib/perl5/site_perl installbin=/usr/home/USERNAME/usr/local/bin installman1dir=/usr/home/USERNAME /usr/local/lib/perl5/man installman3dir=/usr/home/USERNAME/usr/local/lib/perl5/man/man3
Then, each time you install a PERL5 module you can use the following syntax:
FILENAME'
% make
% make Test
% make Install
% make clean
You also can has a few different local module installation procedures, for example one for production Perl and another fo R Development:
FILENAME. Production '
Or
FILENAME. Development '
Install your own Perl modules