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

Monks

I wanted to use local::lib to generate an environment setup for a different directory structure.

I tried

perl -I$HOME/perl32 -Mlocal::lib=$HOME/perl32

but it wants to put the directories under

$HOME/perl32/lib/perl5

I want them to be under

$HOME/perl32/lib

is there a way to accomplish this with local::lib ?


Replies are listed 'Best First'.
Re: how to use local::lib for non perl5 directory
by Anonymous Monk on Feb 21, 2014 at 01:13 UTC
Re: how to use local::lib for non perl5 directory
by Haarg (Priest) on Feb 22, 2014 at 20:00 UTC
    This isn't directly an issue with local::lib, but with the INSTALL_BASE option for ExtUtils::MakeMaker and --install_base for Module::Build. They always append lib/perl5 to the library paths they use for installation. local::lib then follows this when setting up PERL5LIB.