[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

apache2 vs mod_perl2: "Can't locate Apache.pm in @INC"

okay -- on a debian/stable system with apache2/mod-perl2, i was
getting 'Can't locate object method "boot" via package "mod_perl"...'
until i did "apt-get --purge remove libapache-mod-perl" even tho i had
libapache2-mod-perl2 installed...

but now it can't find Apache.pm in /usr/lib/perl5 even tho it's right there!

# apache2 -t
Syntax error on line 3 of /etc/apache2/conf.d/Handler.conf:Can't
locate Apache.pm in @INC (@INC contains: /usr/lib/perl5/Apache2
/etc/perl /usr/local/lib/perl/5.8.7 /usr/local/share/perl/5.8.7
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8
/usr/local/lib/site_perl . /etc/apache2) at /usr/share/perl/5.8/CGI.pm
line 191.\nCompilation failed in require at
/etc/apache2/conf.d/Handler.conf line 14.\nBEGIN failed--compilation
aborted at /etc/apache2/conf.d/Handler.conf line 14.\n

# locate Apache.pm

if we reformat the @INC list above we see
(@INC contains:

so why can't it get its electronic hands on /usr/lib/perl5/Apache.pm?


(and, isn't that second-to-last "dot" entry a security breach lying-in-wait?)

will trillich
"Their iz ate errers in these sentance."

Reply to: