npacemo at gmail.com
Thu Oct 27 21:57:56 PDT 2005
> I'm having some major issues with perl site I'm trying to get working.
> I'm running FreeBSD 5.4 stable using Apache 2.0.55 and perl 5.8.7. The
> error I'm getting is:
> Can't locate object method "connect_on_init" via package "Apache::DBI"
> (perhaps you forgot to load "Apache::DBI"?)
> I do have
> LoadModule perl_module libexec/apache2/mod_perl.so
> PerlModule Apache::DBI
> in my httpd.conf file. I'm pretty new to perl and have no idea what
> I've done wrong. Any help would greatly be appreciated. If you need
> more info from me, don't hesitate to ask.
Maybe you should inspect the Perl script you're trying to run, and you
should look for the following Perl statement:
I think it's also good to read the documentation for the Apache::DBI
module in CPAN:
You could also try to add
PerlModule Apache::DBI # this comes before all other modules using DBI
to start.pl. You should pay attention to the comment!!!
THIS MODULE SHOULD BE LOADED BEFORE ALL OTHER MODULES USING DBI.
What can you do next if you had configured everything correctly and
the Perl scripts are OK?
Maybe you just dont't have the Apache::DBI module installed on your
machine, and you should download it and install it then:
% perl -MCPAN -e "shell"
More information about the freebsd-questions