Introduction
This page describes how AlexisHuxley installed Perl modules in his home.
Procedure
Run the following commands:
yes "" | head -20| cpan # get the cpan command itself configured MODROOT=$HOME/opt/$(osid)/perl # where to install modules echo -e "o conf makepl_arg INSTALL_BASE=$MODROOT\ninstall CPAN\nreload cpan" | cpan # get new CPAN
(This should just be done every time; it is easier than working out of it has or has not already been run for a particular value of $(osid).)
To install modules run:
su - root -c "update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-4.3 1" # Term::ReadKey calls cc and ignores $CC and $GCC cpan install Term::ReadKey # improve CPAN experience install YAML # required for URI::ParseSearchString though latter only warns if YAML missing install URI::ParseSearchString # web-hits script needs this quit su - root -c "update-alternatives --remove-all cc" # Back out cc symlink matrix # Only needed once but few steps in this procedure this way
