Search this blog

vendredi 11 février 2011

Configuring CPAN.pm for installation in user directory

Installation using local::lib
  • Go to http://search.cpan.org/dist/local-lib to check the URL of the last version of local::lib
  • execute the following commands for a new CPAN installation (e.g. delete before .cpan directory if you don't care about already installed modules):
cd
wget http://search.cpan.org/CPAN/authors/id/A/AP/APEIRON/local-lib-1.008004.tar.gz
gunzip local-lib-1.008004.tar.gz
tar -xf local-lib-1.008004.tar
cd local-lib-1.008004
perl Makefile.PL --bootstrap
make test
make install
echo 'eval $(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)' >>~/.bashrc
source ~/.bashrc
perl -MCPAN -eshell
o conf prerequisites_policy follow
o conf build_requires_install_policy yes
o conf commit
exit
 Then, try to install a module such as:
perl -MCPAN -e 'install XML::XQL'
perl -MCPAN -e 'install CGI::Ajax'
perl -MCPAN -e 'install Text::NSP::Measures::2D::Fisher'
See for more details: http://perl.jonallen.info/writing/articles/install-perl-modules-without-root

Aucun commentaire:

Enregistrer un commentaire