Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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.

share|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

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.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .