Beefy Boxes and Bandwidth Generously Provided by pair Networks kudra
Do you know where your variables are?
 
PerlMonks  

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 Makefile.pl, 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 Makefile.pl --help" or "just add the right prefix" - something more user friendly.

Comment on A detailed How-To for locally installing modules
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/Config.pm in $HOME/.cpan/CPAN/MyConfig.pm 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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2014-04-19 05:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (478 votes), past polls