Perl

From RCSWiki
Revision as of 16:03, 4 August 2020 by Dmitri (talk | contribs) (Created page with "= General = = Installing your own copy of Perl = <pre> $ mkdir -p ~/src/perl $ cd ~/src/perl $ wget $ tar xvf perl-5.32.0.tar.gz $ cd perl-5.32.0/ $ unset PERL5LIB $ u...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

General

Installing your own copy of Perl

$ mkdir -p ~/src/perl

$ cd ~/src/perl
$ wget 

$ tar xvf perl-5.32.0.tar.gz

$ cd perl-5.32.0/

$ unset PERL5LIB
$ unset PERL5OPT

$ DEST="$HOME/software/perl-5.32.0"
$ mkdir -p $DEST

$ PREF="-Dprefix=$DEST"
$ OPTS="-Dusethreads"

$ ./Configure -de $PREF $OPTS

$ make -j 4

$ make test |& tee tests.log

$ make install


Activation script activate-perl.sh:

#! /bin/bash
ROOTDIR="$HOME/bin/perl-5.32.0"   
 
unset PERL5LIB
unset PERL5OPT
 
export PATH=$ROOTDIR/bin:$PATH
export MANPATH=$ROOTDIR/man:$MANPATH