cannot run tests when using PERL5LIB (e.g. when using local::lib)

Gabor Szabo szabgab at
Thu Feb 11 21:59:51 UTC 2010

On Thu, Feb 11, 2010 at 11:52 PM, Gabor Szabo <szabgab at> wrote:
> On Thu, Feb 11, 2010 at 11:37 PM, Max Kanat-Alexander
> <mkanat at> wrote:
>> On 02/11/2010 01:33 PM, Gabor Szabo wrote:
>>> When trying to run ./ the test t/001compile.t blows up as I am using
>>> local::lib and I have PERL5LIB configured to locate the privately installed
>>> modules.
>>> This patch fixes it.
>>> Does it look reasonable?
>>        Hmm, why doesn't PERL5LIB get passed to the backticks?
> because of -T
>>        You can just use prove on the tests, too, it works OK.
> I guess it would suffer from the same problem.
>>        Also, you can use to install modules locally in
>> Bugzilla's lib dir if you want, too, and that wouldn't require PERL5LIB.
> I see, I'll check that, though I'd prefer to use the standard(ish)
> installation methods.

I tried this. Part of the output looks like this:

  /usr/bin/make -- OK
Skipping test because of notest pragma
Running make install
Installing /home/gabor/perl5/lib/perl5/Template/Plugin/
Installing /home/gabor/perl5/lib/perl5/Template/Plugin/GD/
Installing /home/gabor/work/bugzilla/lib/man/man3/Template::Plugin::GD::Graph::points.3pm
Installing /home/gabor/work/bugzilla/lib/man/man3/Template::Plugin::GD::Graph::linespoints.3pm

So it is still installing the code in the same directory I would
install (only the man pages are installed
in under bugzilla) and that will still require the PERL5LIB I have.


More information about the developers mailing list