I'd say you've a bad DBI install.  Does this script print the DBI
version number?

#!/usr/bin/perl

use DBI;

print "$DBI::VERSION\n";

@driver_names= DBI->available_drivers();
print "the drivers are : @driver_names";

exit;

perl -w t.pl
1.20
the drivers are : ADO AnyData CSV Chart ExampleP Excel File Multiplex
ODBC Oracle Pg Proxy mysql

Tom

On Thu, Dec 13, 2001 at 11:08:36PM -0800, Herry Sukardi wrote:
> Hi all,
> 
> I have a problem interfacing Mysql with perl.  I used
> red Hat linux 7.0 as the OS and it comes with perl
> built in (perl-5.6.0-9).  I installed MySQL server and
> client downloaded from its web site (www.mysql.org),
> the versions are: MySQL-3.23.44-1 and
> MySQL-client-3.23.43-1.
> I also installed modules that I think will be required
> for interfacing mysql and perl ie. the DBI and DBD. 
> They are:  Mysql-DBI-perl-bin-1.1825-1 and
> DBI-perl-bin-0.93-1

> I get the following error:
> 'Can't locate object method "available_drivers" via
> package "DBI" at ./test line 3'
> 
> When I run a script with @dbh=DBI->connect(.....)
> I also get smilar error of 'Can't locate object method
> "connect" via package "DBI"....'
> Do I miss something ? Have I installed DBI correctly ?
> How do I test the DBI ? Please help... 
> 

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to