pt-query-digest安装报错

来源:-

nlxung

2015-05-31 09:41

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

写回答 关注

3回答

  • 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 解决问题

性能优化之MySQL优化

了解MySQL数据库优化的方法和技巧,在课程中共同探讨一起学习吧

101639 学习 · 221 问题

查看课程

相似问题