Re: I can see Apache.pm, why can't he?

2002-07-30 Thread Stas Bekman

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 BekmanJAm_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




I can see Apache.pm, why can't he?

2002-07-29 Thread Dennis Daupert

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?

2002-07-29 Thread dom

 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