Perl Tips

Local Perl packages

Determine what is the local PERL5LIB configuration:

LIB=$(
  for d in `tr : ' ' <<<$PERL5LIB
  do
    if [ -w $d ] ; then
      echo $d
    break
  fi
  done)
PREFIX=`dirname $LIB`

Install sequence

#PREFIX=$HOME/cpan
#LIB=$HOME/cpan/lib
tar zxvf $perl-mod-tar
cd $unpacked-src-dir
perl Makefile.PL PREFIX=$PREFIX LIB=$LIB "[email protected]"
make
make test
make install

About alex

Owner of this website...
This entry was posted in IT development, Z1 and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *