问答详情
源自:-

pt-query-digest安装报错

老师我在 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.

提问者:nlxung 2015-05-31 09:41

个回答

  • yxs1112003
    2016-06-25 15:14:55

    先查询sudo yum search perl-Diges,根据你需要的安装相应的包,如sudo yum install perl-Digest-MD5.x86_64

  • 程云
    2015-07-09 08:26:02

    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.


  • nlxung
    2015-05-31 13:04:21

     安装包perl-Digest-MD5-2.52-3.el7.x86_64.rpm 解决问题