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

If you add modules to a local/private/personal folder and access them from your scripts by setting PERL5LIB or using use lib then you will not cause any damage to your system or interfere with other programs. This is a good option.

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

    Ok. I don't know how to configure either cpan or apt-get to install a module to a specific location. (i.e. to a private/local folder). Could you advise me how to do this? I'm currently looking it up but not getting very far

    I've seen this page to configure cpan but i wasn't asked to configure cpan the first time I used it (unless i missed it) and there is no option for where to install moduleshttp://docs.webfaction.com/software/perl.html

      apt-get, aptitude, etc. will install the modules to the system libraries. If you are installing from your distribution's repositories, this should be fine - they should not conflict with your system requirements. I don't know that you can, easily, have them install to alternate locations. You could customize the packages and install from a personal repository, but that's not trivial.

      You can configure cpan to install to your home directory. Look for I am not root, how can I install a module in a personal directory? in CPAN.

      Others report success with local::lib. I haven't tried it, but it looks made for the purpose.