On Mon, 29 Nov 2004, Ray Chuan wrote: > Hi, I have DBI 1.45, Apache 2.052 Win32, mod_perl 1.99_17, > Perl 5.84. I get that error when working with DBI in the > /perl dir of apache. works fine on cmd-line and cgi-bin. > > Any comments are highly appreciated. > --------- > #error.log > [error] Can't locate object method "bootstrap" via package "DBI" at > F:/Net/Perl/site/lib/DBI.pm line 249. > BEGIN failed--compilation aborted at F:/Net/Perl/site/lib/DBI.pm line 256. > Compilation failed in require at (eval 7) line 8. > BEGIN failed--compilation aborted at (eval 7) line 8. > --------- > #!F:/Net/Perl/bin/Perl.exe > ## > ## Perl eg > use strict; > use DBI; > > my $dbh = DBI->connect("DBI:mysql:webdb;localhost", "foo", "p", > {PrintError=>0,RaiseError=>1}); > $dbh->disconnect();
Do you happen to have another Perl on your system? If so, it may be picking up something from this other version - try adding a LoadFile "F:/Net/Perl/bin/perl58.dll" before you have the LoadModule directive that loads mod_perl.so. You might also try adjusting the PATH with an Apache directive, to ensure Apache sees F:/Net/Perl/bin as the 1st perl. If you don't have another Perl, do you have problems using other modules with an xs component? For example, does use Digest::MD2; cause problems (assuming you have Digest::MD2 installed)? Is F a network drive? -- best regards, randy kobes -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html