-
Notifications
You must be signed in to change notification settings - Fork 1
Installing perl module locally (example: circos)
Lex Nederbragt edited this page Feb 15, 2016
·
1 revision
Perl modules are installed from CPAN ("The Comprehensive Perl Archive Network").
The following commands create a folder in your home area for perl modules and tells perl and the cpanm installer program where it is.
mkdir -p ~/perl5/bin
cd ~/perl5/bin
module load perlmodules
eval $(perl -Mlocal::lib)
Now you can download the cpanm installer program and prepare for its use:
curl -kLOsS http://xrl.us/cpanm
export PERL_CPANM_HOME=/tmp/cpanm_$USER
Then downloaded the actual modules. The list below is for the circos program:
cpanm Config::General
cpanm Font::TTF
cpanm GD
cpanm List::MoreUtils
cpanm Math::Bezier
cpanm Math::Round
cpanm Math::VecStat
cpanm Params::Validate
cpanm Readonly
cpanm Regexp::Common
cpanm Set::IntSpan
cpanm Text::Format
cpanm Statistics::Basic
cpanm SVG
cpanm Clone
Test if all the necessary modules were loaded (again, using circos as example)
module load circos
circos -modules
Tests should all yield ok.
Be nice and clean up after yourself:
rm -rf /tmp/cpanm_$USER
Add the following to your .bash_login file to load all modules automatically on login - or put it in or a separate script you execute before running, e.g., circos:
module load perlmodules
eval $(perl -Mlocal::lib)
Back to the CEES-HPC wiki home page