Alternatively, you can remove

use Apache;

from Apache::DBI and then you can test it perflectly fine from the 
command-line, you just won't be able to use connect_on_init() which is the 
only reason Apache::DBI seems to load Apache.pm (Apache.pm is causing your 
problem not Apache::DBI).

At 10:20 PM 8/2/2001 +0800, Stas Bekman wrote:
>On Thu, 2 Aug 2001 [EMAIL PROTECTED] wrote:
>
> > Thanks to all (esp Stas) for helping me with the 'make test' error
> > involving CGI.pm.  Here is the next issue:
>
> > use Apache::DBI ();
>
> > When I run "perl -c startup.pl", I get the following error.  I get NO
> > error when I comment out the 'use Apache::DBI' line:
> >
> > 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 startup.pl line 8.
> >
> > Is there an earlier version of Apache::DBI I should be using (like the
> > CGI.pm error)?
>
>It's not a problem. Apache::DBI expects mod_perl env, and hence you cannot
>test it from the command line. I suppose that you don't have a problem to
>start the server with Apache::DBI loaded.
>
>It's documented somewhere is the guide too.
>
>_____________________________________________________________________
>Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
>http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
>mailto:[EMAIL PROTECTED]   http://apachetoday.com http://eXtropia.com/
>http://singlesheaven.com http://perl.apache.org http://perlmonth.com/

__________________________________________________
Gunther Birznieks ([EMAIL PROTECTED])
eXtropia - The Open Web Technology Company
http://www.eXtropia.com/

Reply via email to