在RHEL6安装Percona的Xtrabackup的时候,遇到如题所示的错误。
具体如下:

[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:

[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就没问题了:

[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。

说点什么

avatar

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

  Subscribe  
提醒