解决 libev.so.4()(64bit) is needed by percona-xtrabackup-2.3.4-1.el6.x86_64案例

  1. 在mysql主从同步时经常会用到Xtra, XtraBackup可以说是一个相对完美的免费开源数据备份工具,支持在线无锁表同步复制和可并行高效率的安全备份恢复机制相比mysqldump来说优势较大好处多,在RHEL6中安装XtraBackup时会发生缺少依赖包的现象
  2. 本案例针对Xtra缺少依赖包的情况进行安装分析解决
  3. 1.本实验环境
  4. [root@master ~]# uname  -r
  5. 2.6.32-573.el6.x86_64
  6. [root@master ~]# cat /etc/redhat-release
  7. Red Hat Enterprise Linux Server release 6.7 (Santiago)
  8. mysql> select version();
  9. +------------+
  10. | version()  |
  11. +------------+
  12. | 5.6.28-log |
  13. +------------+
  14. 1 row in set (0.00 sec)
  15. 2.安装Xtra
  16. 进入页面https://www.percona.com/downloads/XtraBackup/LATEST/下载操作系统对应的XtraBackup版本
  17. [root@master ~]# wget  https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.3.4/binary/redhat/6/x86_64/Percona-XtraBackup-2.3.4-re80c779-el6-x86_64-bundle.tar
  18. --2016-05-17 12:42:14--  https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.3.4/binary/redhat/6/x86_64/Percona-XtraBackup-2.3.4-re80c779-el6-x86_64-bundle.tar
  19. Resolving www.percona.com... 74.121.199.234
  20. Connecting to www.percona.com|74.121.199.234|:443... connected.
  21. HTTP request sent, awaiting response... 200 OK
  22. Length: 27504640 (26M) [application/x-tar]
  23. Saving to: “Percona-XtraBackup-2.3.4-re80c779-el6-x86_64-bundle.tar”
  24. 100%[===============================================================================================================>] 27,504,640  2.09M/s   in 16s
  25. 2016-05-17 12:42:32 (1.62 MB/s) - “Percona-XtraBackup-2.3.4-re80c779-el6-x86_64-bundle.tar” saved [27504640/27504640]
  26. 下载完成后进行解压
  27. [root@master ~]# tar  xf Percona-XtraBackup-2.3.4-re80c779-el6-x86_64-bundle.tar
  28. [root@master ~]# ll
  29. total 53764
  30. -rw-------. 1 root root     2103 May 13 01:35 anaconda-ks.cfg
  31. -rw-r--r--. 1 root root    30419 May 13 01:35 install.log
  32. -rw-r--r--. 1 root root     7927 May 13 01:32 install.log.syslog
  33. -rw-rw-r--  1 root root  5701116 Mar 15 01:03 percona-xtrabackup-2.3.4-1.el6.x86_64.rpm
  34. -rw-r--r--  1 root root 27504640 Mar 17 19:32 Percona-XtraBackup-2.3.4-re80c779-el6-x86_64-bundle.tar
  35. -rw-rw-r--  1 root root 20820820 Mar 15 01:03 percona-xtrabackup-debuginfo-2.3.4-1.el6.x86_64.rpm
  36. -rw-rw-r--  1 root root   974656 Mar 15 01:03 percona-xtrabackup-test-2.3.4-1.el6.x86_64.rpm
  37. 3.安装排错步骤
  38. 3.1 在安装过程中发现缺少依赖包lib和perl,原则上能用yum解决的就优先用yum解决,yum解决不掉的可以用网上的yum源或者自己单独下载rpm包进行安装
  39. [root@master ~]# rpm -ivh percona-xtrabackup-2.3.4-1.el6.x86_64.rpm
  40. warning: percona-xtrabackup-2.3.4-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
  41. error: Failed dependencies:
  42. libev.so.4()(64bit) is needed by percona-xtrabackup-2.3.4-1.el6.x86_64
  43. perl(DBD::mysql) is needed by percona-xtrabackup-2.3.4-1.el6.x86_64
  44. 3.2 使用本地yum源安装libev与perl-DBI,但libev.so.4安装失败,是由于本地yum源没有该rpm包,我这里使用网上下载的rpm包进行安装
  45. [root@master ~]# yum install  libev.so.4
  46. Loaded plugins: aliases, changelog, kabi, presto, product-id, security, subscription-manager, tmprepo, verify, versionlock
  47. This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
  48. Loading support for Red Hat kernel ABI
  49. Setting up Install Process
  50. file:///yum/Server/repodata/repomd.xml: [Errno 14] Could not open/read file:///yum/Server/repodata/repomd.xml
  51. Trying other mirror.
  52. No package libev.so.4 available.
  53. Error: Nothing to do
  54. 3.3 安装perl-DBD-MySQL 成功完成
  55. [root@master ~]# yum install  perl-DBD-MySQL
  56. Loaded plugins: aliases, changelog, kabi, presto, product-id, security, subscription-manager, tmprepo, verify, versionlock
  57. This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
  58. Loading support for Red Hat kernel ABI
  59. Setting up Install Process
  60. Resolving Dependencies
  61. --> Running transaction check
  62. ---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be installed
  63. --> Processing Dependency: perl(DBI) for package: perl-DBD-MySQL-4.013-3.el6.x86_64
  64. --> Processing Dependency: perl(DBI::Const::GetInfoType) for package: perl-DBD-MySQL-4.013-3.el6.x86_64
  65. --> Running transaction check
  66. ---> Package perl-DBI.x86_64 0:1.609-4.el6 will be installed
  67. --> Finished Dependency Resolution
  68. Dependencies Resolved
  69. =========================================================================================================================================================
  70. Package                                 Arch                            Version                              Repository                            Size
  71. =========================================================================================================================================================
  72. Installing:
  73. perl-DBD-MySQL                          x86_64                          4.013-3.el6                          rhel-source                          134 k
  74. Installing for dependencies:
  75. perl-DBI                                x86_64                          1.609-4.el6                          rhel-source                          707 k
  76. Transaction Summary
  77. =========================================================================================================================================================
  78. Install       2 Package(s)
  79. Total download size: 841 k
  80. Installed size: 2.0 M
  81. Is this ok [y/N]: y
  82. Downloading Packages:
  83. Setting up and reading Presto delta metadata
  84. Processing delta metadata
  85. Package(s) data still to download: 841 k
  86. ---------------------------------------------------------------------------------------------------------------------------------------------------------
  87. Total                                                                                                                    3.6 MB/s | 841 kB     00:00
  88. Running rpm_check_debug
  89. Running Transaction Test
  90. Transaction Test Succeeded
  91. Running Transaction
  92. Installing : perl-DBI-1.609-4.el6.x86_64                                                                                                           1/2
  93. Installing : perl-DBD-MySQL-4.013-3.el6.x86_64                                                                                                     2/2
  94. rhel-source/productid                                                                                                             | 1.6 kB     00:00 ...
  95. Verifying  : perl-DBD-MySQL-4.013-3.el6.x86_64                                                                                                     1/2
  96. Verifying  : perl-DBI-1.609-4.el6.x86_64                                                                                                           2/2
  97. Installed:
  98. perl-DBD-MySQL.x86_64 0:4.013-3.el6
  99. Dependency Installed:
  100. perl-DBI.x86_64 0:1.609-4.el6
  101. Complete!
  102. [root@master ~]# rpm -ivh percona-xtrabackup-2.3.4-1.el6.x86_64.rpm
  103. warning: percona-xtrabackup-2.3.4-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
  104. error: Failed dependencies:
  105. libev.so.4()(64bit) is needed by percona-xtrabackup-2.3.4-1.el6.x86_64
  106. 3.4 安装libev包
  107. 到http://rpmfind.net/linux/rpm2html/search.php?query=libev.so.4%28%29%2864bit%29&submit=Search+...&system=&arch= 下载操作系统对应的libev包,注意系统号与版本位数
  108. [root@master ~]# wget  ftp://rpmfind.net/linux/dag/redhat/el6/en/x86_64/dag/RPMS/libev-4.15-1.el6.rf.x86_64.rpm
  109. --2016-05-17 12:54:43--  ftp://rpmfind.net/linux/dag/redhat/el6/en/x86_64/dag/RPMS/libev-4.15-1.el6.rf.x86_64.rpm
  110. => “libev-4.15-1.el6.rf.x86_64.rpm”
  111. Resolving rpmfind.net... 195.220.108.108
  112. Connecting to rpmfind.net|195.220.108.108|:21... connected.
  113. Logging in as anonymous ... Logged in!
  114. ==> SYST ... done.    ==> PWD ... done.
  115. ==> TYPE I ... done.  ==> CWD (1) /linux/dag/redhat/el6/en/x86_64/dag/RPMS ... done.
  116. ==> SIZE libev-4.15-1.el6.rf.x86_64.rpm ... 74692
  117. ==> PASV ... done.    ==> RETR libev-4.15-1.el6.rf.x86_64.rpm ... done.
  118. Length: 74692 (73K) (unauthoritative)
  119. 100%[===============================================================================================================>] 74,692       187K/s   in 0.4s
  120. 2016-05-17 12:54:46 (187 KB/s) - “libev-4.15-1.el6.rf.x86_64.rpm” saved [74692]
  121. 安装RHEL6对应的libev-4.15-1.el6.rf.x86_64.rpm包
  122. [root@master ~]# rpm -ivh libev-4.15-1.el6.rf.x86_64.rpm
  123. warning: libev-4.15-1.el6.rf.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
  124. Preparing...                ########################################### [100%]
  125. 1:libev                  ########################################### [100%]
  126. 5.完成安装Xtrabackup
  127. 再次安装Xtrabackup包,安装完成
  128. [root@master ~]# rpm -ivh percona-xtrabackup-2.3.4-1.el6.x86_64.rpm
  129. warning: percona-xtrabackup-2.3.4-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
  130. Preparing...                ########################################### [100%]
  131. 1:percona-xtrabackup     ########################################### [100%]
  132. [root@master ~]#
  133. 6.总结
  134. 总体来说,安装Xtra相对简单,注意下载操作系统类型和位数对应正确的rpm包一般不会出错
  135. 7. 常用下载地址备注
  136. 常用下载地址
  137. libev.so    http://rpmfind.net/linux/rpm2html/search.php?query=libev.so.4%28%29%2864bit%29&submit=Search+...&system=&arch=
  138. XtraBackup  https://www.percona.com/downloads/XtraBackup/LATEST/
时间: 2024-10-03 21:53:33

解决 libev.so.4()(64bit) is needed by percona-xtrabackup-2.3.4-1.el6.x86_64案例的相关文章

perl(Time::HiRes) is needed by percona-xtrabackup-2.2.10-1.el6.x86_64

1:在percona官网下载最新的Xtrabackup http://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.2.10/binary/redhat/6/x86_64/Percona-XtraBackup-2.2.10-re623acb-el6-x86_64-bundle.tar 2:把tar包上传到服务器上 3:安装 [[email protected] software]# rpm -ivh percona*.rpm

安装Mysql遇到的问题: libaio.so.1()(64bit) is needed by MySQL ***

错误信息 Linux CenterOs 64位中安装 MySQL-server-5.5.25a-1.rhel5.x86_64.rpm 出现以下错误[[email protected] upload]# rpm -ivh MySQL-server-5.5.25a-1.rhel5.x86_64.rpmerror: Failed dependencies:libaio.so.1()(64bit) is needed by MySQL-server-5.5.25a-1.rhel5.x86_64libai

libmysqlclient.so.18()(64bit) is needed by sysbench-0.5-3.el6.x86_64

centos 6.5 64bit用rpm包安装sysbench时出现 [[email protected] ~]# rpm -ivh sysbench-0.5-3.el6_.x86_64.rpm  error: Failed dependencies:     libmysqlclient.so.18()(64bit) is needed by sysbench-0.5-3.el6.x86_64 解决办法 安装Percona-XtraDB-Cluster-shared-55-5.5.37-25.

libmysqlclient.so.16()(64bit) is needed by MySQL-shared-compat-5.1.73-1.rhel5.x86_64

出现如下报错libmysqlclient.so.16()(64bit) is needed by MySQL-shared-compat-5.1.73-1.rhel5.x86_64 下载server对应的mysql 兼容包即可解决MySQL-shared-compat-5.5.43-1.el6.x86_64.rpm

libnuma.so.1()(64bit) is needed by mysql-community-server-5.7.9-1.el6.x86_64

版本:5.7.9 新装的CentOS 6.3 安装MySQL 5.7.9 出现的问题 1.首先卸载系统自带的mysql 5.1的包    yum   -y  remove   mysql-libs-5.1.61-4.el6.x86_64 2.开始安装MySQL 5.7.9的包 3.报错:warning: mysql-community-server-5.7.9-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOK

error: Failed dependencies: cloog-ppl >= 0.15 is needed by gcc-4.4.7-4.el6.x86_64 cpp = 4.4.7-4.el6

CentOS 6.5下使用rpm -ivh gcc-4.4.7-4.el6.x86_64.rpm命令安装GCC时提示以下错误: warning: gcc-4.4.7-4.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY error: Failed dependencies: cloog-ppl >= 0.15 is needed by gcc-4.4.7-4.el6.x86_64 cpp = 4.4.7-4.

如何解决Windows8.1(32bit&64bit)下Cisco VPN Client拔号时报442错误的问题

Cisco VPN Cient是广大网络管理员.技术支持工程师和终端用户使用的最流行的VPN客户端之一,用于外网访问公司内部网络,尤其是广大在外出差技术类人员.随着Windows8.1的推出,Cisco VPN用户常面临一个问题,Cisco VPN软件能正常安装但是并不能连接到远程的VPN网络,无论是Windows8.1的32bit版本还是64bit版本,在拔号时都会报出442的错误,如下图所示: 经查资料,原来是注册表的错误造成的,以下是解决方法: 1."Win+R",打开Run命令

如何解决VirtrualBox不能新建64bit的系统的问题

如果你的VirtrualBox不能新建64bit的虚拟机一般有下面两个原因: 1.电脑是32位的,不支持创建64bit的虚拟机 2.电脑不支持Intel VT-x,或者是Intel VT-x没有打开 可以用一个软件直接来检测以上的两点,下载地址:https://www.grc.com/securable.htm 点击运行后,界面如下: 第一个64位表示你的电脑最多支持多少位的系统,32或者64. 第二个表示你的硬件是否支持DEP?Yes,支持.No,不支持.OFF,表示支持,但是关闭着的. 第三

删除依赖包命令

[[email protected] ~]# rpm -qa |grep jdk java-1.6.0-openjdk-1.6.0.0-1.45.1.11.1.el6.x86_64 [[email protected]~]# rpm -e java-1.6.0-openjdk-1.6.0.0-1.45.1.11.1.el6.x86_64 error: Faileddependencies: jre >= 1.5.0 is needed by(installed) libreoffice-ure-