You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Dennis Daupert <dd...@csc.com> on 2002/07/29 15:54:09 UTC
I can see Apache.pm, why can't he?
What's up with this? I'm trying to load Apache::DBI on startup.
I have apache and mod_perl installed, and running ok,
and have installed additional modules, including the
Apache::Bundle.
When I put the line in mod_perl.conf,
PerlModule Apache::DBI
I can't start the web server.
On the command line, when I say
perl -e 'use Apache::DBI'
I get the error msg:
Can't locate object method "module" via package "Apache"
(perhaps you forgot to load "Apache"? at /usr/lib/perl5/
site_perl/5.6.1/Apache/DBI.pm line 199.
Line 199 checks for Apache.pm and Apache::Status, thus:
if ($INC('Apache.pm') and Apache->module('Apache::Status'));
I have both Apache.pm and Apache::Status installed.
What gives?
/dennis
Re: I can see Apache.pm, why can't he?
Posted by Stas Bekman <st...@stason.org>.
Dennis Daupert wrote:
> What's up with this? I'm trying to load Apache::DBI on startup.
>
> I have apache and mod_perl installed, and running ok,
> and have installed additional modules, including the
> Apache::Bundle.
>
> When I put the line in mod_perl.conf,
>
> PerlModule Apache::DBI
>
> I can't start the web server.
Dennis: Doctor, I think my server is sick, it cannot start
Doctor: Does it have a high temperature?
http://perl.apache.org/docs/1.0/guide/help.html#How_to_Report_Problems
__________________________________________________________________
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
Re: I can see Apache.pm, why can't he?
Posted by do...@idealx.com.
> Line 199 checks for Apache.pm and Apache::Status, thus:
>
> if ($INC('Apache.pm') and Apache->module('Apache::Status'));
>
> I have both Apache.pm and Apache::Status installed.
Yes but Apache::module (which called by
"Apache->module('Apache::Status')") is an XS function defined by
libperl.so - it only exists when running under mod_perl.
As a rule, Apache::* packages don't work outside mod_perl.
--
Dominique QUATRAVAUX Ingénieur développeur senior
01 44 42 00 35 IDEALX