On Fri, Feb 13, 2009 at 3:22 PM, Bill Ward <b...@wards.net> wrote:
> I'm building a "tech stack" - that is, downloading CPAN modules and
> installing them in a new directory, not the one that Perl lives in.  Until

Here's how I've done this -- with files living in "/home/david/perl":

* Set PERL5LIB to "/home/david/perl/lib/perl5"
* Add "/home/david/perl/bin" to PATH
* configure CPAN.pm:
    cpan> o conf makepl_arg INSTALL_BASE=/home/david/perl
    cpan> o conf mbuildpl_arg --install_base /home/david/perl
    cpan> o conf commit
* Install a modern EU::MM (that knows what INSTALL_BASE is)
    cpan> install ExtUtils::MakeMaker
* Update the toolchain (for good luck)
    cpan> install Bundle::CPAN

That's pretty much it, as I recall.  Everything pretty much just
works.  I think PERL5LIB is the way to go for what you're doing and
INSTALL_BASE keeps things quite a bit cleaner than PREFIX does.

Your mileage may vary, of course.

-- David

Reply via email to