关于percona-xtrabackup 安装的小纠结

今天本来打算小装一个percona的xtrabackup来测试一把MySQL热备的实验,然后就在percona官网下载了一个最新版的2.4.6版本的xtrabackup

然后先在Redhat 6.4系统上进行安装,将包传上去以后解压安装,然而报了


然后就在Google上查了一下:

https://bugs.launchpad.net/percona-xtrabackup/+bug/1526636

中介绍了关于xtrabackup安装的一个bug

Bug Description

When installing the latest release of percona-xtrabackup (2.3.2-1) from the percona repo, it encounters a missing dependency for libev.so.

Error: Package: percona-xtrabackup-2.3.2-1.el6.x86_64 (percona)
           Requires: libev.so.4()(64bit)

This can be resolved by installing an external repo such as EPEL, but probably should be included in the percona repo. Alternatively switching to AnyEvent (if EV is not a hard requirement) would allow for EV or the internal loop if EV is not installed on a system.

Have not tested this issue with other releases of CentOS.


所以就在Google上找了一个相关的依赖包:libev-4.15-1.el6.rf.x86_64.rpm

安装完毕以后还是报了如下的依赖包的错:

[root@server2 software]# rpm -ivh percona-xtrabackup-24-2.4.6-2.el6.x86_64.rpm
warning: percona-xtrabackup-24-2.4.6-2.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
error: Failed dependencies:
	libcrypto.so.10(libcrypto.so.10)(64bit) is needed by percona-xtrabackup-24-2.4.6-2.el6.x86_64
	libev.so.4()(64bit) is needed by percona-xtrabackup-24-2.4.6-2.el6.x86_64
	libssl.so.10(libssl.so.10)(64bit) is needed by percona-xtrabackup-24-2.4.6-2.el6.x86_64
[root@server2 software]# ls
boost_1_59_0.tar.gz        mysql-5.7.16                                  Percona-XtraBackup-2.4.6-r8ec05b7-el6-x86_64-bundle.tar
cmake-3.5.2                mysql-5.7.16.tar.gz                           percona-xtrabackup-24-debuginfo-2.4.6-2.el6.x86_64.rpm
cmake-3.5.2.tar.gz         openssl-1.0.1e-48.el6.i686.rpm                percona-xtrabackup-test-24-2.4.6-2.el6.x86_64.rpm
libev-4.03-3.el6.i686.rpm  percona-xtrabackup-24-2.4.6-2.el6.x86_64.rpm
[root@server2 software]# rm -rf libev-4.03-3.el6.i686.rpm
[root@server2 software]# rm -rf openssl-1.0.1e-48.el6.i686.rpm
[root@server2 software]# ls
boost_1_59_0.tar.gz             mysql-5.7.16.tar.gz
cmake-3.5.2                     percona-xtrabackup-24-2.4.6-2.el6.x86_64.rpm
cmake-3.5.2.tar.gz              Percona-XtraBackup-2.4.6-r8ec05b7-el6-x86_64-bundle.tar
libev-4.15-1.el6.rf.x86_64.rpm  percona-xtrabackup-24-debuginfo-2.4.6-2.el6.x86_64.rpm
mysql-5.7.16                    percona-xtrabackup-test-24-2.4.6-2.el6.x86_64.rpm
[root@server2 software]# rpm -ivh libev-4.15-1.el6.rf.x86_64.rpm
warning: libev-4.15-1.el6.rf.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
Preparing...                ########################################### [100%]
   1:libev                  ########################################### [100%]
[root@server2 software]# rpm -ivh percona-xtrabackup-24-2.4.6-2.el6.x86_64.rpm
warning: percona-xtrabackup-24-2.4.6-2.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
error: Failed dependencies:
	libcrypto.so.10(libcrypto.so.10)(64bit) is needed by percona-xtrabackup-24-2.4.6-2.el6.x86_64
	libssl.so.10(libssl.so.10)(64bit) is needed by percona-xtrabackup-24-2.4.6-2.el6.x86_64
但是在/usr/lib64的目录下是有这两个文件的啊

[root@cxqtest ~]# ls /usr/lib64/|grep -e ssl.so -e crypto.so
libcrypto.so.10
libcrypto.so.1.0.1e
libnss_compat_ossl.so.0
libnss_compat_ossl.so.0.0.0
libssl.so.10
libssl.so.1.0.1e
查了各种资料,重新安装了openssl依赖包,然而并没有什么卵用。

索性换了一台虚机是centos 6.5的系统再一次尝试:

[root@cxqtest xtrabackup]# gunzip Percona-XtraBackup-2.4.6-r8ec05b7-el6-x86_64-bundle.tar 
gzip: Percona-XtraBackup-2.4.6-r8ec05b7-el6-x86_64-bundle.tar: unknown suffix -- ignored
[root@cxqtest xtrabackup]# ls
Percona-XtraBackup-2.4.6-r8ec05b7-el6-x86_64-bundle.tar
[root@cxqtest xtrabackup]# tar -xvf Percona-XtraBackup-2.4.6-r8ec05b7-el6-x86_64-bundle.tar 
percona-xtrabackup-24-2.4.6-2.el6.x86_64.rpm
percona-xtrabackup-24-debuginfo-2.4.6-2.el6.x86_64.rpm
percona-xtrabackup-test-24-2.4.6-2.el6.x86_64.rpm
[root@cxqtest xtrabackup]# ls
percona-xtrabackup-24-2.4.6-2.el6.x86_64.rpm             percona-xtrabackup-24-debuginfo-2.4.6-2.el6.x86_64.rpm
Percona-XtraBackup-2.4.6-r8ec05b7-el6-x86_64-bundle.tar  percona-xtrabackup-test-24-2.4.6-2.el6.x86_64.rpm
[root@cxqtest xtrabackup]# rpm -ivh percona-xtrabackup-24-2.4.6-2.el6.x86_64.rpm 
warning: percona-xtrabackup-24-2.4.6-2.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
error: Failed dependencies:
	libev.so.4()(64bit) is needed by percona-xtrabackup-24-2.4.6-2.el6.x86_64
[root@cxqtest xtrabackup]# ls
libev-4.15-1.el6.rf.x86_64.rpm                           percona-xtrabackup-24-debuginfo-2.4.6-2.el6.x86_64.rpm
percona-xtrabackup-24-2.4.6-2.el6.x86_64.rpm             percona-xtrabackup-test-24-2.4.6-2.el6.x86_64.rpm
Percona-XtraBackup-2.4.6-r8ec05b7-el6-x86_64-bundle.tar
[root@cxqtest xtrabackup]# rpm -ivh libev-4.15-1.el6.rf.x86_64.rpm
warning: libev-4.15-1.el6.rf.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
Preparing...                ########################################### [100%]
   1:libev                  ########################################### [100%]
   [root@cxqtest xtrabackup]# rpm -ivh percona-xtrabackup-24-debuginfo-2.4.6-2.el6.x86_64.rpm
warning: percona-xtrabackup-24-debuginfo-2.4.6-2.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
Preparing...                ########################################### [100%]
   1:percona-xtrabackup-24-d########################################### [100%]
[root@cxqtest xtrabackup]# rpm -ivh percona-xtrabackup-test-24-2.4.6-2.el6.x86_64.rpm
warning: percona-xtrabackup-test-24-2.4.6-2.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
Preparing...                ########################################### [100%]
   1:percona-xtrabackup-test########################################### [100%]
[root@cxqtest xtrabackup]# ls
libev-4.15-1.el6.rf.x86_64.rpm                           percona-xtrabackup-24-debuginfo-2.4.6-2.el6.x86_64.rpm
percona-xtrabackup-24-2.4.6-2.el6.x86_64.rpm             percona-xtrabackup-test-24-2.4.6-2.el6.x86_64.rpm
Percona-XtraBackup-2.4.6-r8ec05b7-el6-x86_64-bundle.tar
[root@cxqtest xtrabackup]# xtrabackup version
xtrabackup: Error: unknown argument: 'version'
[root@cxqtest xtrabackup]# xtrabackup --
xtrabackup version 2.4.6 based on MySQL server 5.7.13 Linux (x86_64) (revision id: 8ec05b7)
[root@cxqtest xtrabackup]# inno
innobackupex  innochecksum  
[root@cxqtest xtrabackup]# inno
innobackupex  innochecksum  
[root@cxqtest xtrabackup]# innobackupex --version
innobackupex version 2.4.6 Linux (x86_64) (revision id: 8ec05b7)
[root@cxqtest xtrabackup]# 
然后就ok了!



你可能感兴趣的:(MySQL)