Installing Perl modules without Root access

I’ve been working on Harvard FAS compute cluster odyssey. It runs LSF for job management. It is really a beautiful system but I am still learning.

The last few years I’ve been working on a workstation, so I’ve always had root access. Installing Perl modules from cpan was a cinch:

sudo cpan -i Module::Name

However, as a cluster user I have no root access.

So now I am trying to figure out local::lib, which is a Perl module that helps you manage private copies of perl modules.

I found some detailed instructions on how to set it up.

After following those I still found that I needed to set up my mirror in cpan.

I started up cpan (just type cpan at the linux prompt) and then type

o conf connect_to_internet_ok init urllist

(The little “o” there is not a bullet point—you have to type it!)

You can get the URL list from if you are having trouble getting it through the CPAN interface. After I set my mirror (I chose the one at Northeastern University) then cpan seemed to be happy and I can go back to installing things with the same command that I used to, minus the sudo:

cpan -i Module::Name


There are no comments yet...Kick things off by filling out the form below.

You must log in to post a comment.