老师我在 wget脚本后执行报以下错误是缺少依赖包吗?
[root@localhost ~]# pt-query-digest -h
Can't locate Digest/MD5.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/bin/pt-query-digest line 2434.
BEGIN failed--compilation aborted at /usr/local/bin/pt-query-digest line 2434.
先查询sudo yum search perl-Diges,根据你需要的安装相应的包,如sudo yum install perl-Digest-MD5.x86_64
Can't locate Time/HiRes.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /opt/lampp/bin/pt-query-digest line 3189.
BEGIN failed--compilation aborted at /opt/lampp/bin/pt-query-digest line 3189.
安装包perl-Digest-MD5-2.52-3.el7.x86_64.rpm 解决问题