|
本帖最后由 jiawang 于 2022-12-12 14:09 编辑
报错如下:
[root@sztech setup]# yum install -y percona-xtrabackup-24-2.4.21-1.el7.x86_64.rpm
Loaded plugins: fastestmirror, langpacks
Examining percona-xtrabackup-24-2.4.21-1.el7.x86_64.rpm: percona-xtrabackup-24-2.4.21-1.el7.x86_64
Marking percona-xtrabackup-24-2.4.21-1.el7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package percona-xtrabackup-24.x86_64 0:2.4.21-1.el7 will be installed
--> Processing Dependency: perl(DBD::mysql) for package: percona-xtrabackup-24-2.4.21-1.el7.x86_64
Loading mirror speeds from cached hostfile
--> Processing Dependency: perl(Digest::MD5) for package: percona-xtrabackup-24-2.4.21-1.el7.x86_64
--> Processing Dependency: libev.so.4()(64bit) for package: percona-xtrabackup-24-2.4.21-1.el7.x86_64
--> Running transaction check
---> Package percona-xtrabackup-24.x86_64 0:2.4.21-1.el7 will be installed
--> Processing Dependency: libev.so.4()(64bit) for package: percona-xtrabackup-24-2.4.21-1.el7.x86_64
---> Package perl-DBD-MySQL.x86_64 0:4.023-6.el7 will be installed
---> Package perl-Digest-MD5.x86_64 0:2.52-3.el7 will be installed
--> Processing Dependency: perl(Digest::base) >= 1.00 for package: perl-Digest-MD5-2.52-3.el7.x86_64
--> Running transaction check
---> Package percona-xtrabackup-24.x86_64 0:2.4.21-1.el7 will be installed
--> Processing Dependency: libev.so.4()(64bit) for package: percona-xtrabackup-24-2.4.21-1.el7.x86_64
---> Package perl-Digest.noarch 0:1.17-245.el7 will be installed
--> Finished Dependency Resolution
Error: Package: percona-xtrabackup-24-2.4.21-1.el7.x86_64 (/percona-xtrabackup-24-2.4.21-1.el7.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
从以上错误中可以明显看出,我缺少以下依赖包
查看libev包
[root@sztech setup]# yum install libev
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
No package libev available.
Error: Nothing to do
安装libev包
[root@sztech setup]# yum install -y libev-4.04-2.el6.x86_64.rpm
Loaded plugins: fastestmirror, langpacks
Examining libev-4.04-2.el6.x86_64.rpm: libev-4.04-2.el6.x86_64
Marking libev-4.04-2.el6.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package libev.x86_64 0:4.04-2.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================
Installing:
libev x86_64 4.04-2.el6 /libev-4.04-2.el6.x86_64 77 k
Transaction Summary
=============================================================================================================================
Install 1 Package
Total size: 77 k
Installed size: 77 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : libev-4.04-2.el6.x86_64 1/1
Verifying : libev-4.04-2.el6.x86_64 1/1
Installed:
libev.x86_64 0:4.04-2.el6
Complete!
再安装xtrabackup成功
[root@sztech setup]# yum install -y percona-xtrabackup-24-2.4.21-1.el7.x86_64.rpm
Loaded plugins: fastestmirror, langpacks
Examining percona-xtrabackup-24-2.4.21-1.el7.x86_64.rpm: percona-xtrabackup-24-2.4.21-1.el7.x86_64
Marking percona-xtrabackup-24-2.4.21-1.el7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package percona-xtrabackup-24.x86_64 0:2.4.21-1.el7 will be installed
--> Processing Dependency: perl(DBD::mysql) for package: percona-xtrabackup-24-2.4.21-1.el7.x86_64
Loading mirror speeds from cached hostfile
--> Processing Dependency: perl(Digest::MD5) for package: percona-xtrabackup-24-2.4.21-1.el7.x86_64
--> Running transaction check
---> Package perl-DBD-MySQL.x86_64 0:4.023-6.el7 will be installed
---> Package perl-Digest-MD5.x86_64 0:2.52-3.el7 will be installed
--> Processing Dependency: perl(Digest::base) >= 1.00 for package: perl-Digest-MD5-2.52-3.el7.x86_64
--> Running transaction check
---> Package perl-Digest.noarch 0:1.17-245.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================
Installing:
percona-xtrabackup-24 x86_64 2.4.21-1.el7 /percona-xtrabackup-24-2.4.21-1.el7.x86_64 32 M
Installing for dependencies:
perl-DBD-MySQL x86_64 4.023-6.el7 mnt 140 k
perl-Digest noarch 1.17-245.el7 mnt 23 k
perl-Digest-MD5 x86_64 2.52-3.el7 mnt 30 k
Transaction Summary
=============================================================================================================================
Install 1 Package (+3 Dependent packages)
Total size: 32 M
Total download size: 193 k
Installed size: 32 M
Downloading packages:
-----------------------------------------------------------------------------------------------------------------------------
Total 4.0 MB/s | 193 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : perl-DBD-MySQL-4.023-6.el7.x86_64 1/4
Installing : perl-Digest-1.17-245.el7.noarch 2/4
Installing : perl-Digest-MD5-2.52-3.el7.x86_64 3/4
Installing : percona-xtrabackup-24-2.4.21-1.el7.x86_64 4/4
Verifying : perl-Digest-1.17-245.el7.noarch 1/4
Verifying : perl-Digest-MD5-2.52-3.el7.x86_64 2/4
Verifying : percona-xtrabackup-24-2.4.21-1.el7.x86_64 3/4
Verifying : perl-DBD-MySQL-4.023-6.el7.x86_64 4/4
Installed:
percona-xtrabackup-24.x86_64 0:2.4.21-1.el7
Dependency Installed:
perl-DBD-MySQL.x86_64 0:4.023-6.el7 perl-Digest.noarch 0:1.17-245.el7 perl-Digest-MD5.x86_64 0:2.52-3.el7
Complete!
|
|