From: Randy Kobes <[EMAIL PROTECTED]>
To: Ray Chuan <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: [error] Can't locate object method "bootstrap" via package "DBI"
Date: Sun, 28 Nov 2004 22:02:00 -0600 (CST)


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.

I have only one Perl installation.


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)?

here's the script i ran: -- #!F:/Net/Perl/bin/Perl.exe

print "Content-type: text/plain\n\n";
use strict;

# OO style
use Digest::MD2;

my $ctx = Digest::MD2->new;
my $data = "foo";
$ctx->add($data);

my $digest = $ctx->digest;
--
#error.log
[error] Can't locate object method "new" via package "Digest::MD2" at (eval 16) line 9.\n


it works fine in cgi-bin, but it doesn't in the mod_perl dir...


Is F a network drive?

No, F is a fat32 drive...must it be strictly be nfs?


-- 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


_________________________________________________________________ Fast. Clear. Easy. The new face of MSN Search. http://search.msn.com.sg/


-- 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



Reply via email to