Freitag, September 05, 2008

install Perl module in home directory

On a Unix machine without root access install missing Perl modules into home directory.
  • cd ~/perl.local

  • tar xzf ../Perl-Modul-0.89.tar.gz

  • perl Makefile.PL PREFIX=~/perl.local

  • make

  • make test

  • make install

In the Perl file add use lib with the local path. After this follows the normal use of the module.

use lib "/home/markus/perl.local/lib/perl5/site_perl/";
use Perl::Modul;

Keine Kommentare: