安装perl-DBD-MySQL时出现问题

时间:2013-06-14 06:27:15

标签: mysql yum

我在安装perl-DBD-MySQL时遇到依赖性问题。 服务器在Centos 6.4和MySQL 5.5.31上运行。

我跑了这个命令

yum install perl-DBD-MySQL

输出:

Loaded plugins: fastestmirror, security Loading mirror speeds from
cached hostfile  * base: mirror.nl.webzilla.com  * extras:
mirror.nl.webzilla.com  * updates: mirrors.supportex.net Setting up
Install Process Resolving Dependencies
--> Running transaction check
---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be installed
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package:
perl-DBD-MySQL-4.013-3.el6.x86_64
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: perl-DBD-MySQL-4.013-3.el6.x86_64
--> Finished Dependency Resolution Error: Package: perl-DBD-MySQL-4.013-3.el6.x86_64 (base)
           Requires: libmysqlclient.so.16()(64bit) Error: Package: perl-DBD-MySQL-4.013-3.el6.x86_64 (base)
           Requires: libmysqlclient.so.16(libmysqlclient_16)(64bit)  You could try using --skip-broken to work around the problem  You
could try running: rpm -Va --nofiles --nodigest

我注意到服务器上有libmysqlclient.so.18而不是libmysqlclient.so.16

感谢任何帮助,谢谢!

2 个答案:

答案 0 :(得分:0)

系统上的已安装模块存在冲突。请确保您的系统是最新的。使用以下命令:

yum upgrade -y
yum install perl-DBD-MySQL

答案 1 :(得分:0)

您可以使用以下命令解决问题:

yum install perl-DBD-MySQL --enablerepo=*