Can't locate in @inc during CPAN dependency install performed not as root.

Posted by garrett on Stack Overflow See other posts from Stack Overflow or by garrett
Published on 2010-04-12T20:09:17Z Indexed on 2010/04/12 20:13 UTC
Read the original article Hit count: 416

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about cpan

Related posts about perl