qiqino1 发表于 2012-7-5 19:35:13

linux下安装mysql时出现错误,请高手帮忙

# ls
mysql-5.0.56.tar.gz
MySQL-client-community-5.0.37-0.rhel4.i386.rpm
MySQL-devel-community-5.0.37-0.rhel4.i386.rpm
MySQL-server-community-5.0.37-0.rhel4.i386.rpm
# rpm -ivh MySQL-client-community-5.0.37-0.rhel4.i386.rpm
warning: MySQL-client-community-5.0.37-0.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
error: Failed dependencies:
      perl(DBI) is needed by MySQL-client-community-5.0.37-0.rhel4.i386
    Suggested resolutions:
      perl-DBI-1.40-5.i386.rpm
# rpm -ivh MySQL-devel-community-5.0.37-0.rhel4.i386.rpm
warning: MySQL-devel-community-5.0.37-0.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing...                ###########################################
   1:MySQL-devel-community###########################################
# rpm -ivh MySQL-server-community-5.0.37-0.rhel4.i386.rpm
warning: MySQL-server-community-5.0.37-0.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
error: Failed dependencies:
      perl(DBI) is needed by MySQL-server-community-5.0.37-0.rhel4.i386
    Suggested resolutions:
      perl-DBI-1.40-5.i386.rpm
#
#rpm -ivh MySQL-client-community-5.0.37-0.rhel4.i386.rpm
warning: MySQL-client-community-5.0.37-0.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
error: Failed dependencies:
      perl(DBI) is needed by MySQL-client-community-5.0.37-0.rhel4.i386
    Suggested resolutions:
      perl-DBI-1.40-5.i386.rpm

有以下问题:
1.是不是缺少了dbi?
2.我有linux的安装镜像,如何安装dbi?
请详细点,新手来的,在线等

haven6 发表于 2012-7-6 10:49:42

是的,网上去下载perl-DBI-1.40-5.i386.rpm
再,rpm -ivh perl-DBI-1.40-5.i386.rpm
页: [1]
查看完整版本: linux下安装mysql时出现错误,请高手帮忙