Arul, Rex wrote: > Randy Kobes <[EMAIL PROTECTED]> wrote: > > >>On Tue, 16 Apr 2002, Arul, Rex wrote: >> >> >>>I am not sure, if I should post it here: >>> >>>OS: Windows 2000; Perl:ActivePerl 631; Apache:2.0.35; >>>Mod_Perl:1.99_01 downloaded via PPM under theorynx website. >>> >>>In the httpd.conf, I am making the Apache::Registry pointer >>>to be Apache2::ModPerl::Registry. >>> >>>However, when my CGI script is run, I get this error: >>> >>>Server error! Error message: Can't locate >>>ModPerl/RegistryCooker.pm in @INC (@INC contains: C:/Perl/lib >>>C:/Perl/site/lib .) at >>>C:/Perl/site/lib/Apache2/ModPerl/Registry.pm line 11. BEGIN >>>failed--compilation aborted at >>>C:/Perl/site/lib/Apache2/ModPerl/Registry.pm line 11. >>>Compilation failed in require at (eval 1) line 3. >>> >>>However, on verifying the directory, I am able to see >>>RegistryCooker.pm file under the @INC path specified. It is >>>lying right there next to Registry.pm!!! >> >>It looks like the Apache2/ subdirectory isn't being added >>to @INC. Do you 'use Apache2' in your set-up? Does adding >>that to your script help? > > > It just bombs if I try to use the statement, > > use Apache2; > or > use Apache2 (); > > in the startup script. Well! If you think about it, I am in Catch-22. For startup >script to work, PerlRequire should work. That is not working in my case. > > So I put > > PerlModule Apache2 > > expecting that to work! > > Well, that is not working either. Services Panel correctly recognizes that >Mod_Perl_1.99 has been associated with Apache 2.0.35 installation. The Files are in >the right directories posited by @INC. > > Thanks, > Rex
Try this patch that doug just committed to cvs: dougm 02/04/16 10:14:16 Modified: ModPerl-Registry/lib/ModPerl RegistryCooker.pm Log: Apache->server->dir_config crashes on win32; comment it out for the moment Revision Changes Path 1.6 +5 -4 modperl-2.0/ModPerl-Registry/lib/ModPerl/RegistryCooker.pm Index: RegistryCooker.pm =================================================================== RCS file: /home/cvs/modperl-2.0/ModPerl-Registry/lib/ModPerl/RegistryCooker.pm,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- RegistryCooker.pm 13 Nov 2001 04:34:31 -0000 1.5 +++ RegistryCooker.pm 16 Apr 2002 17:14:16 -0000 1.6 @@ -42,10 +42,11 @@ # httpd.conf with: # PerlSetVar ModPerl::RegistryCooker::DEBUG 4 use Apache::ServerUtil (); -use constant DEBUG => - defined Apache->server->dir_config('ModPerl::RegistryCooker::DEBUG') - ? Apache->server->dir_config('ModPerl::RegistryCooker::DEBUG') - : D_NONE; +use constant DEBUG => 0; +#XXX: below currently crashes the server on win32 +# defined Apache->server->dir_config('ModPerl::RegistryCooker::DEBUG') +# ? Apache->server->dir_config('ModPerl::RegistryCooker::DEBUG') +# : D_NONE; ######################################################################### # object's array index's access constants __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com