in reply to Re^2: path to perl on umbuntu
in thread path to perl on umbuntu

When configuring perl you could tell it to install in /opt/perl:

./Configure -des -Dprefix=/opt/perl

Be sure to read the Readme and INSTALL files prior to installation. Your newly built perl will have it's own version of cpan (in the example above under /opt/perl/bin/cpan), it knows where to put modules.

Replies are listed 'Best First'.
Re^4: path to perl on umbuntu
by Anonymous Monk on Oct 27, 2010 at 14:37 UTC

    I will definitely read the install and readme files prior to installation but I can't find them :) The only perl download I can find for ubuntu 10.10 is this one http://packages.ubuntu.com/maverick/perland it doesn't have an install guide and this is perl 5.10

    Also this list of dependencies refers to some modules I have already installed on the linux machine using apt-get. Does that matter? Can they share these files? For example I have already installed make.

    Many thanks

      As I said, you'll need to compile your own, rather than use a packaged version. Download the latest stable source from here. Extract it to your home directory. Read the Readme and Install files and report back if you have any problems.

        I imagine I'll definitely have problems! Can you try explaining to me again why I need to compile my own and why I can't use a packaged version? I did find this link to 5.8

        http://packages.ubuntu.com/hardy/perl
        This is going to be hard as I couldn't even understand your link for the source code. However I found this page http://www.cpan.org/src/README.html I have downloaded the file for 5.8 and it says I need to do the following:
        ./Configure -des -Dprefix=$HOME/localperl make test make install
        What directory do i need to be in when i run these commands and where does my perl 5.8.9 folder which I downloaded need to be relative to this?

        There was a specific readme file for linux but that is talking about Experimental Support for Sun Studio Compilers for Linux OS. Does that concern me?

        Many thanks