处理冲突:mysql55w-libs-5.5.36-3.w6.x86_64 与 mysql-libs < 5.5 冲突

处理冲突:mysql55w-libs-5.5.36-3.w6.x86_64 与 mysql-libs < 5.5 冲突

我正在尝试通过 yum 安装最新的 webtatic MySQL 5.5 版本(http://webtatic.com/packages/mysql55/) 但每次尝试时都会出现以下错误输出:

# yum install mysql55w mysql55w-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * webtatic: us-east.repo.webtatic.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql55w.x86_64 0:5.5.36-3.w6 will be installed
--> Processing Dependency: mysql55w-libs(x86-64) = 5.5.36-3.w6 for package: mysql55w-5.5.36-3.w6.x86_64
---> Package mysql55w-server.x86_64 0:5.5.36-3.w6 will be installed
--> Processing Dependency: perl-DBI for package: mysql55w-server-5.5.36-3.w6.x86_64
--> Processing Dependency: perl-DBD-MySQL for package: mysql55w-server-5.5.36-3.w6.x86_64
--> Processing Dependency: perl(DBI) for package: mysql55w-server-5.5.36-3.w6.x86_64
--> Running transaction check
---> Package mysql55w-libs.x86_64 0:5.5.36-3.w6 will be installed
--> Processing Dependency: libmysqlclient16 for package: mysql55w-libs-5.5.36-3.w6.x86_64
---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be installed
---> Package perl-DBI.x86_64 0:1.609-4.el6 will be installed
--> Running transaction check
---> Package libmysqlclient16.x86_64 0:5.1.69-1.w6 will be installed
--> Processing Conflict: mysql55w-libs-5.5.36-3.w6.x86_64 conflicts mysql-libs < 5.5
--> Finished Dependency Resolution
Error: mysql55w-libs conflicts with mysql-libs-5.1.73-3.el6_5.x86_64

考虑运行yum remove mysql-libs,但这会删除很多其他依赖项,我很确定这会导致一些问题:

Removing:
 mysql-libs                                   x86_64                              5.1.73-3.el6_5                                  @updates
Removing for dependencies:
 cloud-init                                   noarch                              0.7.4-2.el6                                     @epel/6.5
 cronie                                       x86_64                              1.4.4-12.el6                                    @anaconda-CentOS-201311272149.x86_64/6.5
 cronie-anacron                               x86_64                              1.4.4-12.el6                                    @anaconda-CentOS-201311272149.x86_64/6.5
 crontabs                                     noarch                              1.10-33.el6                                     @anaconda-CentOS-201311272149.x86_64/6.5
 php55w-mysql                                 x86_64                              5.5.10-1.w6                                     @webtatic
 postfix                                      x86_64                              2:2.6.6-6.el6_5                                 @updates
 redhat-lsb-core                              x86_64                              4.0-7.el6.centos                                @anaconda-CentOS-201311272149.x86_64/6.5

我该如何解决这个问题?

答案1

您可以通过将 mysql-libs 包切换为 mysql55w-libs 来解决这个问题。这需要在一次事务中完成,以避免卸载其他依赖项:

yum install yum-plugin-replace
yum replace mysql-libs --replace-with mysql55w-libs

yum install mysql55w mysql55w-server

相关内容