Centos – Upgrade Perl on CentOS 5.5 to version 5.10+

centosperl

I am trying to install a Perl program, but its minimum version requirement is Perl 5.10.0. We are running CentOS 5.5, which has Perl 5.8.8 as the default.

Is there an easy way to upgrade Perl to 5.10.* so I can get this module installed?

I am new to both CentOS and Perl so I don't know where to start…

Best Answer

While CentOS 6 will have Perl 5.10.* supported (see the list of included packages for Red Hat Enterprise Linux 6), there are not many RPM sources for installing 5.10.x on CentOS 5. Your best bet will be to compile it yourself.

To do that, you can download any version from 5.3 to the latest development version (5.13) from CPAN - you can download it directly from here.

Download, extract, configure if you want to support specific features, and run make, make test, and make install. See the installation page for Perl at CPAN here for a walkthrough (You can also see a basic tutorial for installing 5.10 this way at this site).

Related Topic