Hi
I am currently trying to connect MySQL with perl,
I first checked the system if it has mysql drivers installed with following
script:
 
#! /usr/bin/perl -w
use strict;
use DBI;
print "Here's a list of DBI drivers:\n";
my @available_drivers = DBI->available_drivers('quiet');
my $driver;
foreach $driver (@available_drivers)
{
   print "$driver\n";
}

 
I saw that mysql was not provided and I downloaded
"mysql-DBI-perl-bin-1.825-1.i386.rpm on my redhat 9.0 system
 
when I tried to run the same script again I got error messages:
 
DBI object version 1.32 does not match $DBI::VERSION 0.93 at
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 249.
Compilation failed in require at ./test_dbi.pl line 4.
BEGIN failed--compilation aborted at ./test_dbi.pl line 4.

 
it seams to me that there must be a newer version for DBI? or what can be
the problem
Thank you in advance
 
regards
Urs
 

Reply via email to