Percona Xtrabackup Error:Requires: libev.so.4()(64bit)
在RHEL6安装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 |
[root@linux xtrabackup]# yum install -y percona-xtrabackup-80 Loaded plugins: product-id, refresh-packagekit, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. iso | 3.9 kB 00:00 ... Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package percona-xtrabackup-80.x86_64 0:8.0.5-1.el6 will be installed --> Processing Dependency: perl(DBD::mysql) for package: percona-xtrabackup-80-8.0.5-1.el6.x86_64 --> Processing Dependency: libev.so.4()(64bit) for package: percona-xtrabackup-80-8.0.5-1.el6.x86_64 --> Running transaction check ---> Package percona-xtrabackup-80.x86_64 0:8.0.5-1.el6 will be installed --> Processing Dependency: libev.so.4()(64bit) for package: percona-xtrabackup-80-8.0.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-80.x86_64 0:8.0.5-1.el6 will be installed --> Processing Dependency: libev.so.4()(64bit) for package: percona-xtrabackup-80-8.0.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-80-8.0.5-1.el6.x86_64 (xtrabackup) 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@linux xtrabackup]# |
该问题发生的原因是因为缺少软件包【libev】
解决:
安装libev:
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 |
[root@linux xtrabackup]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.5 (Santiago) [root@linux xtrabackup]# [root@linux software]# mkdir libev [root@linux software]# cd libev/ [root@linux libev]# wget ftp://rpmfind.net/linux/atrpms/el6-x86_64/atrpms/stable/libev-4.04-2.el6.x86_64.rpm --2019-05-07 08:04:53-- ftp://rpmfind.net/linux/atrpms/el6-x86_64/atrpms/stable/libev-4.04-2.el6.x86_64.rpm => “libev-4.04-2.el6.x86_64.rpm” Resolving rpmfind.net... 195.220.108.108 Connecting to rpmfind.net|195.220.108.108|:21... connected. Logging in as anonymous ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD (1) /linux/atrpms/el6-x86_64/atrpms/stable ... done. ==> SIZE libev-4.04-2.el6.x86_64.rpm ... 38140 ==> PASV ... done. ==> RETR libev-4.04-2.el6.x86_64.rpm ... done. Length: 38140 (37K) (unauthoritative) 100%[===================================================================================>] 38,140 19.9K/s in 1.9s 2019-05-07 08:05:06 (19.9 KB/s) - “libev-4.04-2.el6.x86_64.rpm” saved [38140] [root@linux libev]# rpm -ivh libev-4.04-2.el6.x86_64.rpm warning: libev-4.04-2.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 66534c2b: NOKEY Preparing... ########################################### [100%] 1:libev ########################################### [100%] [root@linux libev]# |
再次安装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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
[root@linux libev]# yum install -y percona-xtrabackup-80 Loaded plugins: product-id, refresh-packagekit, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. gitlab_gitlab-ce/signature | 836 B 00:00 gitlab_gitlab-ce/signature | 1.0 kB 00:00 ... gitlab_gitlab-ce-source/signature | 836 B 00:00 gitlab_gitlab-ce-source/signature | 951 B 00:00 ... Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package percona-xtrabackup-80.x86_64 0:8.0.5-1.el6 will be installed --> Processing Dependency: perl(DBD::mysql) for package: percona-xtrabackup-80-8.0.5-1.el6.x86_64 --> Running transaction check ---> 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 perl-DBI.x86_64 0:1.609-4.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================= Package Arch Version Repository Size ============================================================================================================================= Installing: percona-xtrabackup-80 x86_64 8.0.5-1.el6 xtrabackup 14 M Installing for dependencies: perl-DBD-MySQL x86_64 4.013-3.el6 iso 134 k perl-DBI x86_64 1.609-4.el6 iso 707 k Transaction Summary ============================================================================================================================= Install 3 Package(s) Total download size: 15 M Installed size: 66 M Downloading Packages: ----------------------------------------------------------------------------------------------------------------------------- Total 146 MB/s | 15 MB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Warning: RPMDB altered outside of yum. Installing : perl-DBI-1.609-4.el6.x86_64 1/3 Installing : perl-DBD-MySQL-4.013-3.el6.x86_64 2/3 Installing : percona-xtrabackup-80-8.0.5-1.el6.x86_64 3/3 Verifying : percona-xtrabackup-80-8.0.5-1.el6.x86_64 1/3 Verifying : perl-DBD-MySQL-4.013-3.el6.x86_64 2/3 Verifying : perl-DBI-1.609-4.el6.x86_64 3/3 Installed: percona-xtrabackup-80.x86_64 0:8.0.5-1.el6 Dependency Installed: perl-DBD-MySQL.x86_64 0:4.013-3.el6 perl-DBI.x86_64 0:1.609-4.el6 Complete! [root@linux libev]# |
————————————————
Done。