You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Scott Chapman <sc...@mischko.com> on 2003/04/08 01:03:33 UTC

Need clues to make Apache::AuthDBI find Apache.pm.

I recently installed a RH8.0 system and I'm trying to get the RPM version of 
Apache/Mod_Perl working.

I have been installing Perl modules in an effort to get this box to act as my 
development box.

Now when I go to start the web server it gives me this error:

[Mon Apr 07 15:51:49 2003] [error] Can't locate Apache.pm in @INC <snip> at 
/usr/lib/perl5/site_perl/5.8.0/Apache/AuthDBI.pm line 3.
BEGIN failed--compilation aborted at 
/usr/lib/perl5/site_perl/5.8.0/Apache/AuthDBI.pm line 3.
Compilation failed in require at (eval 6) line 3.

I thought Apache.pm would be supplied by mod_perl-1.99_05-3 (rpm).  I also 
have http installed as the following rpm's:
httpd-devel-2.0.40-11
httpd-2.0.40-11

Can anyone help me get this resolved? I've run out of clues!

Scott


Re: Need clues to make Apache::AuthDBI find Apache.pm.

Posted by Perrin Harkins <pe...@elem.com>.
Scott Chapman wrote:
> I thought Apache.pm would be supplied by mod_perl-1.99_05-3 (rpm).

No, mod_perl 2 (which is what that RPM is) does not have an Apache.pm in 
it.  It is also not compatible with Apache::AuthDBI directly, although 
you can try it with the "compat" mode on and see if it works.

If you have an existing system running on mod_perl 1 with AuthDBI and 
you're just trying to set up a dev box for it, you should wipe the Red 
Hat apache and mod_perl, and rebuild them from scratch with apache 1.x 
and mod_perl 1.x.

- Perrin



Re: Need clues to make Apache::AuthDBI find Apache.pm.

Posted by Stas Bekman <st...@stason.org>.
Scott Chapman wrote:
> I recently installed a RH8.0 system and I'm trying to get the RPM version of 
> Apache/Mod_Perl working.
> 
> I have been installing Perl modules in an effort to get this box to act as my 
> development box.
> 
> Now when I go to start the web server it gives me this error:
> 
> [Mon Apr 07 15:51:49 2003] [error] Can't locate Apache.pm in @INC <snip> at 
> /usr/lib/perl5/site_perl/5.8.0/Apache/AuthDBI.pm line 3.
> BEGIN failed--compilation aborted at 
> /usr/lib/perl5/site_perl/5.8.0/Apache/AuthDBI.pm line 3.
> Compilation failed in require at (eval 6) line 3.
> 
> I thought Apache.pm would be supplied by mod_perl-1.99_05-3 (rpm).  I also 
> have http installed as the following rpm's:
> httpd-devel-2.0.40-11
> httpd-2.0.40-11
> 
> Can anyone help me get this resolved? I've run out of clues!

You are trying to run mod_perl 1.0 module with mod_perl 2.0, if it wasn't 
ported to 2.0 it probably won't work. Either downgrade to mod_perl 1.0 or port 
that module to run under mod_perl 2.0. If decide to port it and you encounter 
problems feel free to post specific questions to the list.

But first read the existing porting documentation:
http://perl.apache.org/docs/2.0/user/compat/compat.html
http://perl.apache.org/docs/2.0/devel/porting/porting.html


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com