If you don't have permissions to install perl modules, you may still install them manually, indicating a custom path where you've got writing permissions.
Fist, download and unzip module archive:
wget module.tar.gz
tar -xzf module.tar.gz
cd module
Then, if the module distribution contains a Makefile.PL
file, run:
perl Makefile.PL INSTALL_BASE=$HOME/perl
make
make test
make install
or if you have Build.PL
file instead of a Makefile.PL
:
perl Build.PL --install_base $HOME/perl
perl Build
perl Build test
perl Build install
You also have to include the module path in PERL5LIB
environment variable in order to use it in your code:
export PERL5LIB=$HOME/perl