Perl: Difference between revisions

From RCSWiki
Jump to navigation Jump to search
(Added categories)
Line 44: Line 44:
export MANPATH=$ROOTDIR/man:$MANPATH
export MANPATH=$ROOTDIR/man:$MANPATH
</pre>
</pre>
[[Category:ARC]]
[[Category:Software]]

Revision as of 16:52, 13 September 2023

General

Installing your own copy of Perl

$ mkdir -p ~/src/perl

$ cd ~/src/perl
$ wget https://www.cpan.org/src/5.0/perl-5.32.0.tar.gz

$ 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-my-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