0

我在安装 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在服务器上。

任何帮助表示赞赏,谢谢!

4

2 回答 2

0

系统上安装的模块存在冲突。请首先确保您的系统是最新的。使用这些命令:

yum upgrade -y
yum install perl-DBD-MySQL
于 2015-02-05T09:57:54.830 回答
0

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

yum install perl-DBD-MySQL --enablerepo=*
于 2018-10-08T16:31:08.560 回答