Perl 5.16 on Ubuntu 13.04 (Raring Ringtail)

Update 2013-03-29: Caused some chaos with debconf. I have modified the sets a little to fix it.


If you need to move off Perl 5.14 which is the current distro packaged version on Ubuntu 13.04 daily, snag source and compile it. It works. But, I would reccomend leaving the 5.14 in the dkpg system due to the massive dependencies it has. Here is what I did.

1. Go into Synaptic and lock the version of Perl you already have installed. Removing it is going to cause massive chaos, so we are just compiling over it from source.

lockpackage1install perl 5.16 on ubuntu


That way, any updates will not mess with the compiled version but everything in the dpkg system is okay.

2. I always go into /tmp to do the source grab and compile.

The current perl src as of this post is 5.16.3 but depending what is current later check and snag it

Then open and compile

and accept most of the default values, but it will prompt for the executable path. The config will want to put everything in /usr/local which is fine except for the executables. You want to put those in /usr/bin instead of /usr/local/bin so it will displace the old version. It is your call and you could put it all under /usr but either way, you probably want those executables in /usr/bin to overwrite the 5.14 versions.

3. Copy the Debconf perl module into the path of the new perl compile @INC libraries. If you don’t do this, your whole package system updates and upgrades will fail.

4. Do the make trio

5. After that, you should have perl 5.16 installed. But, I would then go in and update CPAN.

and when you are in CPAN run

To get things up to speed and exit. Should be set.


1 comment

Leave a comment or reply

  • The directory /usr/local/perl5 doesnt’t exist when I get to the step:

    cp -pr /usr/share/perl5/Debconf /usr/local/lib/perl5/5.16.3/Debconf

    Can I substitute /usr/local/lib/perl5/5.16.3/Debconf with /usr/share/perl5/Debconf ?