Toolserver:Perl

Instead of bugging River for adding perl modules, you can install them for yourself into your home directory.

Step 1: Add these lines to your ~/.bash_profile: export PERL5LIB=$PERL5LIB:~/lib export MANPATH=$MANPATH:~/man

Step 2: You will need to create some directories $ mkdir -p ~/lib $ mkdir -p ~/man/man{1,3} $ mkdir -p ~/.cpan/CPAN $ mkdir -p ~/.cpan/build $ mkdir -p ~/.cpan/sources

Step 3: You'll need to copy the global CPAN settings (/etc/perl/CPAN/Config.pm) file to ~/.cpan/CPAN/MyConfig.pm: $ cp /etc/perl/CPAN/Config.pm ~/.cpan/CPAN/MyConfig.pm

Step 4: Edit MyConfig.pl

Step 4a: Replace every reference to the /root/ directory to your home directory.

Step 4b: Change the 'makepl_arg' setting to this: LIB=~/lib INSTALLSITEMAN1DIR=~/man/man1 INSTALLSITEMAN3DIR=~/man/man3

Step 5: Save, logout, then log back in, so the new environment variables are set.

Step 6: Start CPAN: $ perl -MCPAN -e "shell"

Step 7: Install modules. The .pm files are added to your ~/lib directory, and the documentation is added to your ~/man directory. For example: cpan> install Text::CSV

Step 8: There is no step 8. You're done!

If you use CGI scripts in perl you have to add your home directory to @INC because CGI scripts do not parse your ~/.bash_profile:

use lib "/home/username/lib";