Greetings,

I've been beating my head against a problem here for about a week, and
getting nowhere.  

We have a RedHat 7.3 system with perl 5.6.1 installed, and mod_perl 1.27
compiled into Apache as a static module.  Everything works fine - EXCEPT
DBI.  Any scripts that use DBI bomb out, and the following error is
recorded in the error log:

an't locate object method "bootstrap" via pa
ckage "DBI" at /usr/lib/perl5/site_perl/5.6.0/i686-linux/DBI.pm line
248.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.6.0/i686-linux/D
BI.pm line 255.
Compilation failed in require at /home/**cleansed**/testdbi.pl l
ine 3.
BEGIN failed--compilation aborted at /home/**cleansed**/testdbi.
pl line 3.

Note the 5.6.0's - mod_perl couldn't even LOCATE DBI until I linked
/usr/lib/perl5/site_perl/5.6.1 to /usr/lib/perl5/site_perl/5.6.0

Here's the testdbi.pl script:

#!/usr/bin/perl
use CGI;
use DBI;
my $query = new CGI;
print $query->header();
print $query->start_html();
print "Hello World";

If we call the script from /cgi-bin/, it works fine.  If we call it from
/mod_perl/ (aliased to the cgi-bin directory, but with mod_perl as the
handler), the script produces the error shown.

We've completely wiped and reinstalled perl, and Apache.  If anyone has
any insight as to what the problem might be, I'm all ears.

Brandon Ewing

Reply via email to