tod222 has asked for the wisdom of the Perl Monks concerning the following question:

Monks, I can have users do
perl Makefile.PL SITEPREFIX=$HOME/local
but they won't get dependencies installed. (Module::Install's auto_install doesn't propagate SITEPREFIX and thus can't install dependencies locally.)

I can set up CPAN.pm to do a local install, but while the dependencies are downloadable from CPAN, my package isn't (yet). Can CPAN.pm, CPANPLUS.pm, or cpanp locally install an already-downloaded package Foo-0.0.1.tar.gz, automatically downloading from CPAN and locally installing the modules required by Foo?

Thanks.

Replies are listed 'Best First'.
Re: Non-root install of non-CPAN package and its dependencies?
by Khen1950fx (Canon) on Jul 29, 2008 at 22:10 UTC
Re: Non-root install of non-CPAN package and its dependencies?
by bingos (Vicar) on Jul 30, 2008 at 10:15 UTC

    CPANPLUS can install packages from URIs:

    F:\asperl>cpanp CPANPLUS::Shell::Default -- CPAN exploration and module installation ( +v0.84) *** Please report bugs to <bug-cpanplus@rt.cpan.org>. *** Using CPANPLUS::Backend v0.84. ReadLine support disabled. *** Type 'p' now to show start up log Did you know... You can add custom sources to your index. See '/cs --help' for det +ails CPAN Terminal> i http://somewebserver/path/to/package-0.01.tar.gz

    I believe that it can also use file type URIs.

    CPAN Terminal> i file:///path/to/releases/package-0.01.tar.gz

    It also supports custom source locations that can be added to the index, see '/cs --help' at the cpanp prompt for details.