PerlLocalLib

From UMIACS
Revision as of 19:16, 1 May 2012 by Derek (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Please see complete documentation at http://search.cpan.org/dist/local-lib/lib/local/lib.pm.

To get started you will just need to know that everything by default will be installed into your ~/perl5 directory. You can install a module calling the right version of perl in this case by the following (in this example /opt/local/stow/perl-5.14.2/bin/perl).

 /opt/local/stow/perl-5.14.2/bin/perl -MCPAN -Mlocal::lib -e 'CPAN::install(LWP)'

You will need to then make perl aware of this alternate location for perl modules, you can run and copy the output that emits into your shell intialization files (.cshrc/.tcshrc, .bash_profile, etc..).

 /usr/local/stow/perl-5.14.2/bin/perl -Mlocal::lib

You will then need to log out/log in or source your dot files to get the new variables.