in reply to Instal perl module remotely

You'll need to set up a directory under your home tree to install the modules in. ~/lib/perl5 is canonical and convenient.

Then you can either upload the module tarballs and do the

$ tar -xzf Foo.tar.gz $ cd Foo $ perl Makefile.PL PREFIX=${HOME} $ make $ make test $ make install
dance, or you can follow Re: Creating my own CPAN directory to produce a private non-root CPAN setup for your home directory. I recommend the second for convenience.

In either case you need to tell perl to search your private lib for modules. Setting the PERL5LIB environment variable will do that for you.

Update: Oops, thanks, bart++. Repaired. I knew there was something fishy about that!

After Compline,
Zaxo

Replies are listed 'Best First'.
Re^2: Instal perl module remotely
by bart (Canon) on May 08, 2006 at 08:13 UTC
    perl Configure.PL PREFIX=${HOME}
    "Configure.PL"?? What kind of distribution is that? Are you sure this isn't supposed to be Makefile.PL instead?
Re^2: Instal perl module remotely
by timotheus (Novice) on May 08, 2006 at 13:31 UTC
    I've been using Module::Build for some CPAN modules recently and I've have had to do non-root installs. Here's the Build.PL equivalent to Zaxo's post about using Makefile.PL.
    $ tar -xzf Foo.tar.gz $ cd Foo $ perl Build.PL $ ./Build install_base=${HOME} $ ./Build test $ ./Build install
Re^2: Instal perl module remotely
by Polonius (Friar) on May 08, 2006 at 10:56 UTC

    Dangit! Only last week, I decided I had to use CGI::Session over Apache::Session because my webhost's server didn't have Apache::Session installed. It was an easy decision - a no-brainer in fact, because I thought I had no other (easy) option. And now you go and tell me how to install Apache::Session myself! Now I'm going to have to do some research to find out what's best. What a nuisance! ;-)

    But seriously, thanks Zaxo.

    Polonius