You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Michael Peters <mp...@plusthree.com> on 2007/10/22 22:38:17 UTC
Re: Error Can't locate Apache/DBI.pm
Michael Moon wrote:
> 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
This means you're trying to use Apache::DBI without having it installed.
> 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/Store/DBI.pm
> /usr/lib/perl5/site_perl/5.8.8/Apache/Session/Store/DBI.pm
That's Apache::Session::Store::DBI
> /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/DBI.pm
That's DBI
> /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Bundle/DBI.pm
And that's Bundle::DBI. None of which are Apache::DBI.
>
>
> I have tried copying the file to
> /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/Apache directory.
Well, obviously just copying random files into random places isn't going to make
things work.
Apache::DBI is an addon module and does not come by default with mod_perl. Use
the CPAN shell to install it.
--
Michael Peters
Developer
Plus Three, LP