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

This is a total pain!! :) I've looked at CPAN and read how to install modules if you are not a root user. However I still can't find anything to tell me how I can specify where CPAN installs the module to so that I could, if i wanted, install a module to my own code library.

If i am missing something obvious, please feel free to spell it out to me like I am a 4 year old child who's not very good with computers

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

    I've also had a go at installing a local copy a differen version of perl and that seems to be going ok. I need to install some modules to use with this version and the instructions in the user manual are

    apt-get update apt-get install \ lynx unzip zip ncftp gcc libc6-dev make mysql-server apache2 \ perl libgd-gd2-perl libcgi-session-perl libclass-base-perl apt-get clean
    Are any of the things in this list specific to a version of perl because they are installed using apt-get so they will be available to the system perl and not my local perl if that is the case?

    With my limited knowledge I think these files libgd-gd2-perl libcgi-session-perl libclass-base-perl are perl modules in apt-get format and so will be installed for the system perl. But i should be able to use CPAN for my new local perl and install the CPAN version of them?

      How do i set up a symlink(i think that's what I need) so I don't have to type the full path to my local perl all the time?

      After i've set up a symlink, will my local perl or the system perl be described by 'which perl'