Re: [error] Can't locate object method "bootstrap" via package "DBI"

[prev] [thread] [next] [Date index for 2004/11/29]

From: Randy Kobes
Subject: Re: [error] Can't locate object method "bootstrap" via package "DBI"
Date: 04:02 on 29 Nov 2004
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

(message missing)

Re: [error] Can't locate object method "bootstrap" via package "DBI"
Randy Kobes 04:02 on 29 Nov 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52