Percona安装失败

时间:2018-12-18 19:13:07

标签: rpm yum percona percona-xtradb-cluster

在安装了percona服务器很多次之后,似乎我已经找到了一个独特的服务器。

# yum list installed | grep -i perc
percona-release.noarch               0.1-10                           @percona-release-noarch

如您所见,我仅安装了仓库。当我去安装PXC5.7时,我得到了:

# yum install Percona-XtraDB-Cluster-server-57
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.atlanticmetro.net
 * epel: fedora-epel.mirrors.tds.net
 * extras: mirror.atlanticmetro.net
 * updates: mirror.atlanticmetro.net
percona-release-sources                                                                                                                                                                  | 2.9 kB  00:00:00     
percona-release-sources/7/primary_db                                                                                                                                                     |  82 kB  00:00:00     
Resolving Dependencies
--> Running transaction check
---> Package Percona-XtraDB-Cluster-server-57.x86_64 0:5.7.23-31.31.2.el7 will be installed
--> Processing Dependency: Percona-XtraDB-Cluster-client-57 = 5.7.23-31.31.2.el7 for package: Percona-XtraDB-Cluster-server-57-5.7.23-31.31.2.el7.x86_64
--> Processing Dependency: Percona-XtraDB-Cluster-shared-57 = 5.7.23-31.31.2.el7 for package: Percona-XtraDB-Cluster-server-57-5.7.23-31.31.2.el7.x86_64
--> Processing Dependency: percona-xtrabackup-24 >= 2.4.12 for package: Percona-XtraDB-Cluster-server-57-5.7.23-31.31.2.el7.x86_64
--> Processing Dependency: perl-DBD-MySQL for package: Percona-XtraDB-Cluster-server-57-5.7.23-31.31.2.el7.x86_64
--> Processing Dependency: qpress for package: Percona-XtraDB-Cluster-server-57-5.7.23-31.31.2.el7.x86_64
--> Running transaction check
---> Package Percona-XtraDB-Cluster-client-57.x86_64 0:5.7.23-31.31.2.el7 will be installed
---> Package Percona-XtraDB-Cluster-shared-57.x86_64 0:5.7.23-31.31.2.el7 will be installed
---> Package percona-xtrabackup-24.x86_64 0:2.4.12-1.el7 will be installed
---> Package perl-DBD-MySQL.x86_64 0:4.023-6.el7 will be installed
--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: perl-DBD-MySQL-4.023-6.el7.x86_64
--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: perl-DBD-MySQL-4.023-6.el7.x86_64
---> Package qpress.x86_64 0:11-1.el7 will be installed
--> Running transaction check
---> Package Percona-Server-shared-56.x86_64 0:5.6.42-rel84.2.el7 will be installed
--> Processing Conflict: Percona-XtraDB-Cluster-shared-57-5.7.23-31.31.2.el7.x86_64 conflicts Percona-Server-shared-56
--> Finished Dependency Resolution
Error: Percona-XtraDB-Cluster-shared-57 conflicts with Percona-Server-shared-56-5.6.42-rel84.2.el7.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

运行建议的命令不会产生任何结果。我尝试安装PXC56,它工作正常。然后,我yum remove那些软件包,然后再次尝试仅得到相同的结果。我也尝试过安装它提到的特定软件包与

冲突
yum install https://repo.percona.com/centos/7/RPMS/x86_64/Percona-Server-shared-56-5.6.42-rel84.2.el7.x86_64.rpm

它会很好地安装,请执行删除操作,尝试安装PXC57,并得到相同的冲突。我什至尝试使用rpm -e并使用yum-utils删除它。我从来没有遇到过这个问题。

更新:

我将范围缩小到perl-DBD-MySQL作为问题包。

# yum install perl-DBD-MySQL
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.atlanticmetro.net
 * epel: fedora-epel.mirrors.tds.net
 * extras: mirror.atlanticmetro.net
 * updates: mirror.atlanticmetro.net
Resolving Dependencies
--> Running transaction check
---> Package perl-DBD-MySQL.x86_64 0:4.023-6.el7 will be installed
--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: perl-DBD-MySQL-4.023-6.el7.x86_64
--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: perl-DBD-MySQL-4.023-6.el7.x86_64
--> Running transaction check
---> Package Percona-Server-shared-56.x86_64 0:5.6.42-rel84.2.el7 will be installed
--> Processing Conflict: Percona-XtraDB-Cluster-shared-57-5.7.23-31.31.2.el7.x86_64 conflicts Percona-Server-shared-56
--> Finished Dependency Resolution
Error: Percona-XtraDB-Cluster-shared-57 conflicts with Percona-Server-shared-56-5.6.42-rel84.2.el7.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

虽然还是不知道如何解决

1 个答案:

答案 0 :(得分:2)

不幸的是,您在这里遇到了一个已知问题,这与perl-DBD-MySQL软件包有关

您应该可以通过运行

对此进行补救
yum install perl-DBD-MySQL

此后,安装Percona repo软件包,然后再安装Percona XtraDB Cluster,Percona Server for MySQL

有关更多信息,您可以在https://jira.percona.com上找到许多报告...希望对您有用!

披露:我为Percona工作