I would like to run some perl-scripts on my server that require perl 5.10. Perl 5.10 seems to be released many years ago and is still not available for CentOS5.

In #rhel I was recommended to install RHEL6, but I use CentOS. In #centos I was jokingly recommended to install CentOS-6.

This leaves me wondering... all other Linux distributions I know already support perl 5.10, except for CentOS. Should I manually install perl 5.10? Or is this likely to end up making my server a mess? Or should I try to rebuild packages based on Fedora source packages?


The "Modern" way of setting up a version of Perl different from the system Perl is by using
perlbrew - this way you can maintain a Perl version on a per-user basis without messing too much with the system installed perl; this way system installed stuff that uses Perl still works without problems.

  • or cpanminus – chicks Sep 9 '15 at 1:49
  • cpanminus is a -very nice - client for installing perl MODULES from the cpan. If you want a different perl from system perl you can't use a cpan client; you'd use perlbrew or - newer and also very nice - plenv – MichielB Sep 9 '15 at 11:16

The RPMs at https://packages.endpoint.com/rhel/5/os/ look good. They install perl in /usr/local.


Something like this should work:

wget http://www.cpan.org/src/perl-5.12.3.tar.gz
tar -xzf perl-5.12.3.tar.gz
cd perl-5.12.3
./Configure -des -Dprefix=$HOME/localperl
make test
make install

Then you can run the scripts with /usr/bin/perl5.12.3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.