Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 24 lines (19 sloc) 896 Bytes
#!/bin/bash
export VERSION=5.20.1
. `dirname $0`/functions.sh
setup /usr/local/bin/perl$VERSION
download http://cpan.metacpan.org/src/perl-$VERSION.tar.bz2
rm -rf perl-$VERSION
tar zxf perl-$VERSION.tar.bz2 || exit $?
cd perl-$VERSION
sh Configure -des -Duseshrplib -Dusemultiplicity -Duseithreads -Dinc_version_list=none -Dperladmin=david@justatheory.com -Dcf_email=david@justatheory.com || exit $?
# * -Dusershrplib required for embedding, e.g. PL/Perl.
# * -Dusemultiplicity required to allow multiple interpreters in one process,
# e.g., to allow both PL/Perl and PL/PerlU functions to be used in a single
# database connection.
# * For a test build, add -Dprefix='/usr/local/perl-5.12' or similar
# * For debugging Perl, add -Dprefix=/usr/local/perl-5.10.0.d -Doptimize='-g'
make -j3 || exit $?
make test || exit $?
#TEST_JOBS=3 make test_harness || exit $?
make install || exit $?