in reply to path to perl on umbuntu

Hi, One final word of warning/advice to go with the rest. Ubuntu uses the Debian advanced package tools (apt) if you need to add a CPAN library and do not install your own perl you should use apt to manage your modules rather than the cpan shell, most modules will be of the form libcollection-module-perl where the original module was Collection::Module. ~You can find them easily with the following
~/$ apt-cache search Collection::Module
and the install with the command
~/$ sudo apt-get install libcollection-module-perl

print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."

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

    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

      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'