how to tell perl where to find a clearly installed module?

Avi Greenbury lists at avi.co
Wed Sep 21 23:39:13 UTC 2011


Robert P. J. Day wrote:

>   what is the proper solution to this?  i can try to set and export
> PERL5DIR right away but is that the normal way to handle this?

I'd add

use lib '/usr/share/perl5';

to the top of the failing script, which will add that directory to the
start of @INC. That's the 'normal' way to add directories to @INC

The actual solution, though, is to file a bug against the package, and
ideally find where in the package it's faffing with @INC and put that
info in the bug report.

-- 
Avi




More information about the ubuntu-users mailing list