error: Failed dependencies: perl(DBD::mysql) is needed by percona-xtrabackup-以及perl(Time::HiRes) is needed by percona-xtrabackup-xxx报错解决办法

【linux命令】error: Failed dependencies: perl(DBD::mysql) is needed by percona-xtrabackup-以及perl(Time::HiRes) is needed by percona-xtrabackup-xxx报错解决办法

之前也遇到过类似报错,不过网站都没记录,这次记录下。实际网页上的资料也都是有很多的正确解决方案。
问题如下,通过官网下载的XtraBackup rpm包,安装XtraBackup 这个mysql备份工具报错如下:

[[email protected] src]# rpm  -ivh   percona-xtrabackup-22-2.2.13-1.el6.x86_64.rpm 
warning: percona-xtrabackup-22-2.2.13-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
error: Failed dependencies:
	perl(DBD::mysql) is needed by percona-xtrabackup-22-2.2.13-1.el6.x86_64
	perl(Time::HiRes) is needed by percona-xtrabackup-22-2.2.13-1.el6.x86_64
[[email protected] src]#  yum -y install perl perl-devel libaio libaio-devel perl-Time-HiRes perl-DBD-MySQL

解决办法如下:

 yum -y install perl perl-devel libaio libaio-devel perl-Time-HiRes perl-DBD-MySQL

再次重新安装,问题解决。

hmoban主题是根据ripro二开的主题,极致后台体验,无插件,集成会员系统
自学咖网 » error: Failed dependencies: perl(DBD::mysql) is needed by percona-xtrabackup-以及perl(Time::HiRes) is needed by percona-xtrabackup-xxx报错解决办法