Since you are familiar with perlbrew, you can still use this to install Perl.
perlbrew install 5.16.1
Just make sure you give the appropriate permissions. Let's say $PERLBREW_ROOT /home/djh/perl5/perlbrew (default):
chmod a+x /home/djh/ chmod a+x /home/djh/perl5/ chmod a+x /home/djh/perl5/perlbrew/ chmod a+x /home/djh/perl5/perlbrew/perls/ chmod -R a+rX /home/djh/perl5/perlbrew/perls/5.16.1t/
Then use the following shebang line in the script:
But perhaps you do not want this in your home. If so, this is what you can do:
cd /tmp wget http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/perl-5.16.1.tar.bz2 tar xvjf perl-5.16.1.tar.bz2 cd perl-5.16.1 sh Configure -des -Dprefix=/opt/perls/5.16.1t -Dusethreads make test sudo mkdir /opt/perls/5.16.1t sudo chown djh:djh /opt/perls/5.16.1t make install
The installer will configure permissions correctly. All you have to do is install shebang on
("t" is my convention for threading builds. Remove -Dusethreads if you don't want thread support.)
source share