You might check where the DBD installed.  Some of them install in /usr/local
instead of /usr.  Sounds like what has happened.  That's one of the things
you have to look out for when using rpms.

Regards,
Drew

-----Original Message-----
From: pkp team [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 12:48 PM
To: [EMAIL PROTECTED]
Subject: Can't locate DBD/mysql.pm


Hi there....

pardon my interruption, but i'm having a problem and i've been stuck on this

one for a while.

I am installing DBI, DBD:Mysql on one of our linux server.
Here's what i did:
I installed perl-DBI.rpm, followed by
perl-DBD-msql-mysql.rpm, ad finally
zlib-devel.rpm
I had no problem istalling the above.
but when i run a test script (which is as follows):

#!/usr/bin/perl -w
use DBI;
use strict;
my $db = 'test';
my $host = 'localhost';
my $id = 'root';
my $pwd= '';
my $dbh = DBI->connect("DBI:mysql:$db:$host",$id,$pwd);
if(!defined $dbh) {
    die "Can't connect: $DBI::errstr \n";}
print "Connected!!\n";



I get the following error:
"install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC 
contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 
/usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 
/usr/lib/perl5/site_perl .) at (eval 1) line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: ADO, ExampleP, Multiplex, Proxy.
at ./temp line 15"


Please help me out here. I dont know what i'm doing wrong... i have a 
deadline to meet and i cant get anywhere unless i install this.

thanks
trevor

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

Reply via email to