1.安装percona-toolkit.rpm时候报错:

warning: percona-toolkit.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
error: Failed dependencies:
perl(Time::HiRes) is needed by percona-toolkit-2.2.16-1.noarch
perl(Term::ReadKey) is needed by percona-toolkit-2.2.16-1.noarch

安装percona-toolkit.rpm时候报错:perl(Time::HiRes) is needed by percona-toolkit-2.2.16-1.noarch-LMLPHP

2原因分析:

缺少依赖包 perl-TermReadKey和 perl-Time-HiRes

3.解决办法:安装依赖包

①yum -y install perl-TermReadKey

安装percona-toolkit.rpm时候报错:perl(Time::HiRes) is needed by percona-toolkit-2.2.16-1.noarch-LMLPHP

② yum -y install perl-Time-HiRes

安装percona-toolkit.rpm时候报错:perl(Time::HiRes) is needed by percona-toolkit-2.2.16-1.noarch-LMLPHP

4.重新安装#rpm -ivh percona-toolkit.rpm

安装percona-toolkit.rpm时候报错:perl(Time::HiRes) is needed by percona-toolkit-2.2.16-1.noarch-LMLPHP

05-11 22:23