I'm working in a lab running a CentOS server with Perl 5.8.8.

I would like to install a newer version of Perl for my personal use only (i.e. do not affect other users). How can I do that?

link|improve this question

58% accept rate
feedback

2 Answers

up vote 1 down vote accepted

Perlbrew can do this; indeed it is a common method for intalling many local Perl installations, e.g. for compability testing.

link|improve this answer
Thanks, but I'm getting an error when trying to install a perl version using perlbrew: perlbrew install perl-5.10.1 Attempting to load conf from /home/dave/perl5/perlbrew/Conf.pm Fail to get search.cpan.org/dist/perl-5.10.1 (error: ) at /home/dave/perl5/perlbrew/bin/perlbrew line 1277. – David B Sep 15 '10 at 13:30
@David: do you have a firewall or proxy in the way? That sounds like a download issue. – Ether Sep 15 '10 at 15:58
I have a proxy, but it is set in env. I have no problems downloading using wget, git and cpan. I'm using Ubuntu 10.04. – David B Sep 16 '10 at 6:32
solved when removing the http:// from the proxy... – David B Sep 21 '10 at 9:57
feedback

consulting the READMEof the perl distribution gives you:

INSTALLATION
============

If you're using a relatively modern operating system and want to
install this version of Perl locally, run the following commands:

   ./Configure -des -Dprefix=$HOME/localperl
   make test
   make install

which should be exactly what you are after.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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