Can't locate in @inc during CPAN dependency install performed not as root.
- by garrett
While trying to do:
perl -I'/v1/data/site_perl' -MCPAN -e 'install Log::Dispatch';
I continue to get "Can't locate Params/Validate.pm in @INC." When looking at the output, /v1/data/site_perl is NOT in the @INC displayed, even though I used -I.
I am not root so I have changed my CPAN config so that:
'makepl_arg' => q[LIB=/v1/data/site_perl INSTALLSITEMAN1DIR=/v1/data/site_perl/man/man1 INSTALLSITEMAN3DIR=/v1/data/site_perl/man/man3 INSTALLMAN1DIR=/v1/data/site_perl/man/man1 INSTALLMAN3DIR=/v1/data/site_perl/man/man3]
So even LIB is set.
In a basic script I have:
use lib '/v1/data/site_perl';
use Params::Validate;
With no problems.
How do I make the Log::Dispatch use lib /v1/data/site_perl without a force install? What am I missing?