我在用perl连mysql时出现如下错误提示。

我在用perl连mysql时出现如下错误提示。

我在用perl连mysql时出现如下错误提示。
请问出现了什么问题?


install_driver(mysql) failed: Can't load '/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.10: 无法打开共享对象文件: 没有那个文件或目录 at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229.
at (eval 1) line 3
Compilation failed in require at (eval 1) line 3.
Perhaps a required shared library or dll isn't installed where expected
at dbi.pl line 6

源程序如下:

#!/use/bin/perl

use DBI;

#连接数据库mydata
my $dbh = DBI->connect('DBI:mysql:mydata') or die "无法连接数据库: " .DBI->errstr;

print "插入若干记录n";
my $sth = $dbh->prepare(q{
INSERT INTO address (id, name,email,telephone) VALUES (2, 'yinweibiao', 'jibei', 05317231419)});

print "输入记录,回车结束:";
while ($inputdata =<>) {
chop $inputdata;
last unless($inputdata);
my ($id, $name,$email, $tel) = split( /,/, $inputdata);
$sth->execute($id, $name, $email,$tel)
}
# $dbh->commit;

print "下面根据输入的名字打印出EMAIL地址和电话n";
my $sth = $dbh->prepare('SELECT * FROM address WHERE name=?')
or die $dbh->errstr;
print "请输入姓名,回车结束:";
while ($inputname =<>) {
my @data;
chomp $inputname;
last unless($inputname);
$sth->execute($inputname) or die "错误: " . $sth->errstr;
while (@data = $sth->fetchrow_array()) {
print "Email:$data[2]t Telephone:$data[3]n";
}
}
#断开连接
$dbh->disconnect;
[b][/b][b][/b]
你的DBD-Mysql驱动没有安装正确.