Apache::DBI missing methods?!

2001-05-15 Thread James Croft


Hi,

I've just joined the list looking for an answer to this. A couple of
others have posted the same problem but I couldn't find any answers.

I'm running RH6.2 with standard Apache, perl and mod_perl rpms. I'm
hitting a brick wall if I include a 'PerlModule Apache::DBI' line in
httpd.conf - Apache starts up but shuts down immediately. I created a test
script that just use's the module and I get the following error

Can't locate object method "module" via package "Apache" at
/usr/lib/perl5/site_perl/5.005/Apache/DBI.pm line 202. BEGIN
failed--compilation aborted at ./test.pl line 4.

Which must be what's frying httpd.

Does anyone know what's going on? Any help or suggestions appreciated.

Thanks

James

--
James Croft
System Administrator
edNET - Internet Working Solutions
--
t: +44 (0)131 466 7003 (main)
t: +44 (0)131 466 7018 (direct)
pgp: www.ednet.co.uk/~james/public_key.asc
--







Re: Apache::DBI missing methods?!

2001-05-15 Thread James Croft

On Tue, 15 May 2001, Stas Bekman wrote:

> > Can't locate object method "module" via package "Apache" at
> > /usr/lib/perl5/site_perl/5.005/Apache/DBI.pm line 202. BEGIN
> > failed--compilation aborted at ./test.pl line 4.
> >
> > Which must be what's frying httpd.
> >
> > Does anyone know what's going on? Any help or suggestions appreciated.
>
> Have you tried:
> http://perl.apache.org/guide/troubleshooting.html#Can_t_locate_object_method_get_
> or
> PREREQUISITES
>Note that this module needs mod_perl-1.08 or higher,
>apache_1.3.0 or higher and that mod_perl needs to be
>configured with the appropriate call-back hooks:
>
>  PERL_CHILD_INIT=1 PERL_STACKED_HANDLERS=1.
>

Thanks Stas,

Thing is, I'm sure all the prerequisites have been met.

I'm running apache 1.3.14 and mod_perl 1.21, mod_perl was configured with
EVERYTHING=1.

The docs don't say so but does ApacheDBI depend on any other modules?



James

--
James Croft
System Administrator
edNET - Internet Working Solutions
--
t: +44 (0)131 466 7003 (main)
t: +44 (0)131 466 7018 (direct)
pgp: www.ednet.co.uk/~james/public_key.asc
--