[root@localhost yum.repos.d]# yum -y install libmysql*
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Package 1:libreoffice-core-5.3.6.1-19.el7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package mariadb-libs.x86_64 1:5.5.60-1.el7_5 will be installed
Removing mariadb-libs.x86_64 1:5.5.60-1.el7_5 - u due to obsoletes from installed mysql-community-libs-5.7.26-1.el7.x86_64
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package mariadb-libs.x86_64 1:5.5.60-1.el7_5 will be installed
--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 2:postfix-2.10.1-7.el7.x86_64
--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2.10.1-7.el7.x86_64
--> Finished Dependency Resolution
Error: Package: 2:postfix-2.10.1-7.el7.x86_64 (@anaconda)
Requires: libmysqlclient.so.18()(64bit)
Error: Package: 2:postfix-2.10.1-7.el7.x86_64 (@anaconda)
Requires: libmysqlclient.so.18(libmysqlclient_18)(64bit)
You could try using --skip-broken to work around the problem
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
2:postfix-2.10.1-7.el7.x86_64 has missing requires of libmysqlclient.so.18()(64bit)
2:postfix-2.10.1-7.el7.x86_64 has missing requires of libmysqlclient.so.18(libmysqlclient_18)(64bit)
[root@localhost yum.repos.d]#
上面错误原因是缺少Percona-XtraDB-Cluster-shared-55-5.5.37-25.10.756.el6.x86_64.rpm这个包
下载:
[root@localhost yum.repos.d]# wget http://www.percona.com/redir/downloads/Percona-XtraDB-Cluster/5.5.37-25.10/RPM/rhel6/x86_64/Percona-XtraDB-Cluster-shared-55-5.5.37-25.10.756.el6.x86_64.rpm
--2019-06-10 18:01:53-- http://www.percona.com/redir/downloads/Percona-XtraDB-Cluster/5.5.37-25.10/RPM/rhel6/x86_64/Percona-XtraDB-Cluster-shared-55-5.5.37-25.10.756.el6.x86_64.rpm
Resolving www.percona.com (www.percona.com)... 74.121.199.234
Connecting to www.percona.com (www.percona.com)|74.121.199.234|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.percona.com/redir/downloads/Percona-XtraDB-Cluster/5.5.37-25.10/RPM/rhel6/x86_64/Percona-XtraDB-Cluster-shared-55-5.5.37-25.10.756.el6.x86_64.rpm [following]
--2019-06-10 18:01:53-- https://www.percona.com/redir/downloads/Percona-XtraDB-Cluster/5.5.37-25.10/RPM/rhel6/x86_64/Percona-XtraDB-Cluster-shared-55-5.5.37-25.10.756.el6.x86_64.rpm
Connecting to www.percona.com (www.percona.com)|74.121.199.234|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 631340 (617K) [application/x-redhat-package-manager]
Saving to: ‘Percona-XtraDB-Cluster-shared-55-5.5.37-25.10.756.el6.x86_64.rpm’
100%[=========================================================================================================================>] 631,340 48.0KB/s in 12s
2019-06-10 18:02:06 (53.4 KB/s) - ‘Percona-XtraDB-Cluster-shared-55-5.5.37-25.10.756.el6.x86_64.rpm’ saved [631340/631340]
[root@localhost yum.repos.d]# ls
1.repo 2.repo.bak Percona-XtraDB-Cluster-shared-55-5.5.37-25.10.756.el6.x86_64.rpm tmp zabbix.repo.bak
[root@localhost yum.repos.d]# chmod 777 Percona-XtraDB-Cluster-shared-55-5.5.37-25.10.756.el6.x86_64.rpm
[root@localhost yum.repos.d]# ls
1.repo 2.repo.bak Percona-XtraDB-Cluster-shared-55-5.5.37-25.10.756.el6.x86_64.rpm tmp zabbix.repo.bak
安装:
[root@localhost yum.repos.d]# rpm -hiv Percona-XtraDB-Cluster-shared-55-5.5.37-25.10.756.el6.x86_64.rpm
warning: Percona-XtraDB-Cluster-shared-55-5.5.37-25.10.756.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:Percona-XtraDB-Cluster-shared-55-################################# [100%]
[root@localhost yum.repos.d]#
[root@localhost yum.repos.d]#
附件如下:
<
[root@localhost yum.repos.d]# yum -y install libmysql*
。。。
安装成功。
[root@localhost yum.repos.d]#