YUM:Requires: libev.so.4()(64bit)
在使用YUM安装percona-xtrabackup的时候,你可能会遇到如题所示的错误。
具体详情如下所示:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
[root@mysql ~]# yum install -y percona-xtrabackup Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Install Process Loading mirror speeds from cached hostfile * base: mirrors.yun-idc.com * extras: mirrors.tuna.tsinghua.edu.cn * updates: mirrors.163.com Resolving Dependencies --> Running transaction check ---> Package percona-xtrabackup.x86_64 0:2.3.5-1.el6 will be installed --> Processing Dependency: perl(DBD::mysql) for package: percona-xtrabackup-2.3.5-1.el6.x86_64 --> Processing Dependency: libev.so.4()(64bit) for package: percona-xtrabackup-2.3.5-1.el6.x86_64 --> Running transaction check ---> Package percona-xtrabackup.x86_64 0:2.3.5-1.el6 will be installed --> Processing Dependency: libev.so.4()(64bit) for package: percona-xtrabackup-2.3.5-1.el6.x86_64 ---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be installed --> Processing Dependency: perl(DBI::Const::GetInfoType) for package: perl-DBD-MySQL-4.013-3.el6.x86_64 --> Processing Dependency: perl(DBI) for package: perl-DBD-MySQL-4.013-3.el6.x86_64 --> Running transaction check ---> Package percona-xtrabackup.x86_64 0:2.3.5-1.el6 will be installed --> Processing Dependency: libev.so.4()(64bit) for package: percona-xtrabackup-2.3.5-1.el6.x86_64 ---> Package perl-DBI.x86_64 0:1.609-4.el6 will be installed --> Finished Dependency Resolution Error: Package: percona-xtrabackup-2.3.5-1.el6.x86_64 (percona-release-x86_64) Requires: libev.so.4()(64bit) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest [root@mysql ~]# |
该问题其实是一个BUG。
https://bugs.launchpad.net/percona-xtrabackup/+bug/1526636
https://github.com/percona/percona-xtrabackup/pull/181
要解决该问题,可以通过安装RPM:libev-4.15-1.el6.rf.x86_64.rpm。
下载该RPM:
http://rpm.pbone.net/index.php3/stat/4/idpl/23691406/dir/centos_6/com/libev4-4.15-7.1.x86_64.rpm.html
上传服务器,并安装:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
[root@mysql ~]# ls -ltr /software total 893368 -rw-rw-r--. 1 root root 8400516 Jun 30 00:03 Percona-Server-client-57-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 143962740 Jun 30 00:03 Percona-Server-57-debuginfo-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 924744 Jun 30 00:03 Percona-Server-shared-57-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 42272740 Jun 30 00:03 Percona-Server-server-57-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 1279936 Jun 30 00:03 Percona-Server-devel-57-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 1555032 Jun 30 00:03 Percona-Server-tokudb-57-5.7.13-6.1.el6.x86_64.rpm -rw-rw-r--. 1 root root 30250904 Jun 30 00:03 Percona-Server-test-57-5.7.13-6.1.el6.x86_64.rpm -rw-r--r--. 1 root root 228659200 Jul 11 07:44 Percona-Server-5.7.13-6-re3d58bb-el6-x86_64-bundle.tar drwxr-xr-x. 2 root root 4096 Jul 11 20:10 repodata -rw-r--r--. 1 root root 0 Jul 11 20:14 Processing -rw-r--r--. 1 root root 0 Jul 11 20:14 Running -rw-r--r--. 1 root root 0 Jul 11 20:14 Package -rw-r--r--. 1 root root 0 Jul 11 20:14 Finished -rw-r--r--. 1 root root 457441280 Jul 11 23:00 mysql-5.7.13-1.el6.x86_64.rpm-bundle.tar -rw-r--r--. 1 root root 36560 Jul 12 01:13 libev4-4.15-7.1.x86_64.rpm [root@mysql ~]# [root@mysql ~]# rpm -ivh /software/libev4-4.15-7.1.x86_64.rpm warning: /software/libev4-4.15-7.1.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID b611872d: NOKEY Preparing... ########################################### [100%] 1:libev4 ########################################### [100%] [root@mysql ~]# |
再次尝试YUM安装percona-xtrabackup,就应该没问题了。
——————————————————————————————
Done。