Perl: Difference between revisions
Jump to navigation
Jump to search
(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...") |
No edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
= General = | = General = | ||
* Comprehensive Perl Archive Network: https://www.cpan.org/ | |||
: This is where one can get Perl. | |||
* Download Perl source code: https://www.cpan.org/src/README.html | |||
= Installing your own copy of Perl = | = Installing your own copy of Perl = | ||
Line 8: | Line 12: | ||
$ cd ~/src/perl | $ cd ~/src/perl | ||
$ wget | $ wget https://www.cpan.org/src/5.0/perl-5.32.0.tar.gz | ||
$ tar xvf perl-5.32.0.tar.gz | $ tar xvf perl-5.32.0.tar.gz | ||
Line 33: | Line 37: | ||
Activation script '''activate-perl.sh''': | Activation script '''activate-my-perl.sh''': | ||
<pre> | <pre> | ||
#! /bin/bash | #! /bin/bash | ||
Line 44: | Line 48: | ||
export MANPATH=$ROOTDIR/man:$MANPATH | export MANPATH=$ROOTDIR/man:$MANPATH | ||
</pre> | </pre> | ||
= Links = | |||
[[ARC Software pages]] | |||
[[Category:ARC]] | |||
[[Category:Software]] | |||
{{Navbox Software}} |
Latest revision as of 19:33, 18 October 2023
General
- Comprehensive Perl Archive Network: https://www.cpan.org/
- This is where one can get Perl.
- Download Perl source code: https://www.cpan.org/src/README.html
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
Links
|