[rt-users] Error starting apache Can't locate Apache/DBI.pm in @INC
Michael Moon
MMoon at verimatrix.com
Mon Oct 22 16:36:25 EDT 2007
I have installed mod_perl 1.3 and Apache 1.39 on a CentOS 5 system in
order get Request Tracker running. When I attempt to start apache I get
the following error:
Syntax error on line 969 of /usr/local/apache/conf/httpd.conf: Can't
locate Apache/DBI.pm in @INC
(@INC contains:
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7
/usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/5.8.8 .
/usr/local/apache/
/usr/local/apache/lib/perl) at (eval 7) line 3.
__________________________________________________
I have located the file in the following directories:
/opt/.cpan/build/Apache-Session-1.84-Ad18Dp/Session/Store/DBI.pm
/opt/.cpan/build/Apache-Session-1.84-Ad18Dp/blib/lib/Apache/Session/Stor
e/DBI.pm
/usr/lib/perl5/site_perl/5.8.8/Apache/Session/Store/DBI.pm
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/DBI.pm
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Bundle/DBI.pm
I have tried copying the file to
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/Apache directory.
Apache starts but it throws a lot of strange errors which makes me think
manually copying the file is not the correct way to resolve the error.
My httpd.conf file looks like this:
<VirtualHost *:80>
ServerName support.fakename.com
DocumentRoot /opt/rt3/share/html
AddDefaultCharset UTF-8
# this line applies to Apache2+mod_perl2 only
# Below line might be incorrect, I had to use:
# PerlModule Apache2::compat
# mod_perl 2.0.1 from FC4 Linux
# PerlModule Apache2 Apache::compat
PerlModule Apache::DBI
PerlRequire /opt/rt3/bin/webmux.pl
<Location />
SetHandler perl-script
PerlHandler RT::Mason
</Location>
</VirtualHost>
Anyone know what might be the problem?
Thanks,
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20071022/97b98829/attachment.htm>
More information about the rt-users
mailing list