Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

A detailed How-To for locally installing modules

by Corion (Pope)
on May 18, 2000 at 14:44 UTC ( #12444=perlquestion: print w/ replies, xml ) Need Help??
Corion has asked for the wisdom of the Perl Monks concerning the following question:

As a lowly user without root access (on some machines), I sometimes have to install Perl modules to run other software. I know that it is, in general, possible to create a "local" installation, where all modules reside in their respective subdirectories to the program directory and/or the current directory.

But as I found, it is not as easy to give the "right" options to both, ppd and, as I think it should be. If some kind soul could either point me to a page with detailed instructions on how to make both methods of installation (CPAN/ppd and manual installation) work with non-root, I'd be very grateful.

PS: By detailed, I mean a bit more than just "perl -w --help" or "just add the right prefix" - something more user friendly.

Comment on A detailed How-To for locally installing modules
Replies are listed 'Best First'.
Re: A detailed How-To for locally installing modules
by httptech (Chaplain) on May 18, 2000 at 15:04 UTC
    It's really not that difficult, so a "detailed how-to" isn't much longer than a few paragraphs. Look near the bottom of this page, under How do I install the module?

    Locally installing a binary module for Win32 is even easier, just unzip the package, go to the "x86" directory and unzip the .tar.gz file, then use lib './x86/blib/lib';

      Or.. using CPAN under *nix:
      cpan> o conf makepl_arg PREFIX="/path/to/module"
      Under Win32 using PPM:
      PPM> set root c:\yourpath PPM> set build c:\yourpath
        If you want to use CPAN as a non-privleged user, you'll also have to create a local copy of CPAN/ in $HOME/.cpan/CPAN/ and use it to override the default paths for the CPAN installation, otherwise you won't even be able to start the CPAN interface.
        I ran into an additional problem: a tool tries to mess around with the site directory. You also need to modify the CPAN configuration SITEPREFIX to your local perl directory in some cases.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://12444]
Approved by root
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2015-10-05 05:21 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (107 votes), past polls