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