Re: can't locate Apache/Build.pm

[prev] [thread] [next] [Date index for 2005/01/07]

From: Randy Kobes
Subject: Re: can't locate Apache/Build.pm
Date: 23:07 on 07 Jan 2005
On Sat, 8 Jan 2005, Ron Savage wrote:

> Hi Randy
>
> Observe the error msg again:
>
> C:\Perl-modules\Apache-Test-1.19>perl Makefile.PL
> Can't locate Apache/Build.pm in @INC (@INC contains: lib C:/Perl/lib C:/Perl/site/lib .) at lib/Apac
> he/TestConfig.pm line 33.
> BEGIN failed--compilation aborted at lib/Apache/TestConfig.pm line 34.
> Compilation failed in require at lib/Apache/TestMM.pm line 21.
> BEGIN failed--compilation aborted at lib/Apache/TestMM.pm line 21.
> Compilation failed in require at Makefile.PL line 17.
> BEGIN failed--compilation aborted at Makefile.PL line 17.
>
> The sequence of events is:
> 1: Run Makefile.PL
> 2: Execute line 17 of Makefile.PL:
> use Apache::TestMM qw(test clean); #enable 'make test and make clean'
> 3: Execute line 21 of TestMM:
> use Apache::TestConfig ();
> (which incidentally is the same as line 21 of Makefile.PL, so both need to work)
> 4: Execute lines 30 .. 34 of TestConfig:
> 5: Line 30 will return IS_MOD_PERL_2 as true
> 6: Line 34 will require Apache::Build
> 7: It must fail because /perl/site/lib/Apache2 is not in @INC
> and /perl/site/lib/Apache2/Apache/Build.pm is what is being required.

Hi Ron,
     Thanks for tracking that down .... I think I see what
the problem is (and I've been bitten by that before) - line
30 of Apache::TestConfig is erroneously setting MOD_PERL_2
as true because (I suspect) you have a stray mod_perl.pm
under C:\Perl\site\lib\ from an earlier install (on Win32,
there was a bug in older mp2 installs that not all the files
were correctly put under Apache2/ - the proper place for
mod_perl.pm should be under C:\Perl\site\lib\Apache2\). If
that's the case, and also assuming you have
C:\Perl\site\lib\Apache2\mod_perl.pm (if not, it will be
placed there by the current mp2 install), try removing
C:\Perl\site\lib\mod_perl.pm and try Apache-Test again.

        -- 
        best regards,
randy

(message missing)

Re: [summary] The Conflict of mp1 vs mp2 vs mp22 vs ... vs mpNN
merlyn (Randal L. Schwartz) 22:26 on 31 Dec 2004

can't locate Apache/Build.pm
Randy Kobes 21:23 on 05 Jan 2005

Re: can't locate Apache/Build.pm
Randy Kobes 17:43 on 06 Jan 2005

Re: can't locate Apache/Build.pm
Ron Savage 22:13 on 06 Jan 2005

Re: can't locate Apache/Build.pm
Randy Kobes 23:42 on 06 Jan 2005

Re: can't locate Apache/Build.pm
Ron Savage 22:49 on 07 Jan 2005

Re: can't locate Apache/Build.pm
Randy Kobes 23:07 on 07 Jan 2005

Re: can't locate Apache/Build.pm
Ron Savage 02:32 on 08 Jan 2005

Re: can't locate Apache/Build.pm
Randy Kobes 06:28 on 08 Jan 2005

Re: can't locate Apache/Build.pm
Randy Kobes 15:28 on 08 Jan 2005

Re: can't locate Apache/Build.pm
Ron Savage 00:36 on 09 Jan 2005

Re: can't locate Apache/Build.pm
Ron Savage 22:00 on 08 Jan 2005

Re: can't locate Apache/Build.pm
Geoffrey Young 23:12 on 07 Jan 2005

Re: can't locate Apache/Build.pm
Randy Kobes 06:43 on 08 Jan 2005

Generated at 12:16 on 16 Jan 2005 by mariachi v0.52