. /opt/perl/perl_profile.sh mkdir $PERL_HOME mkdir $PERL_BASE/install cd $PERL_BASE/install wget http://search.cpan.org/CPAN/authors/id/D/DA/DAPM/perl-${PERL_VER}.tar.gz tar -xzf perl-${PERL_VER}.tar.gz ( cd perl-${PERL_VER} # NOTES: # - Configure parameters shamelessly derived from the vendor perl.spec # file and the output of `perl -V` # - suid is disabled as we are not installing as root UNAME_I=`uname -i` UNAME_S=`uname -s | tr [A-Z] [a-z]` sh Configure -des \ -Doptimize="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 \ -fexceptions -fstack-protector --param=ssp-buffer-size=4 \ -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables" \ -Dversion=${PERL_VER} \ -Dmyhostname=localhost \ -Dperladmin=root@localhost \ -Dcc=gcc \ -Dinstallprefix=${PERL_HOME} \ -Dprefix=${PERL_HOME} \ -Darchname=${UNAME_I}-${UNAME_S} \ -Dvendorprefix=${PERL_HOME} \ -Dsiteprefix=${PERL_HOME} \ -Duseshrplib \ -Dusethreads \ -Duseithreads \ -Duselargefiles \ -Ud_dosuid \ -Dd_semctl_semun \ -Di_db \ -Ui_ndbm \ -Di_gdbm \ -Di_shadow \ -Di_syslog \ -Dman3ext=3pm \ -Duseperlio \ -Dinstallusrbinperl=n \ -Ubincompat5005 \ -Uversiononly \ -Dpager='/usr/bin/less -isr' \ -D/opt/perld_gethostent_r_proto -Ud_endhostent_r_proto \ -Ud_sethostent_r_proto \ -Ud_endprotoent_r_proto -Ud_setprotoent_r_proto \ -Ud_endservent_r_proto -Ud_setservent_r_proto \ -Dinc_version_list=${PERL_VER} \ -Dscriptdir=${PERL_HOME}/bin make && make test && make install )