Announcement

Announcement Module
Collapse
No announcement yet.

pt-query-digest: getting PERL compilation error message

Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • pt-query-digest: getting PERL compilation error message

    Hi,

    My goal is to run pt-query-digest tool.

    I first run on our Linux machine:
    tcpdump -s 65535 -x -nn -q -tttt -i any -c 9999999 port 3306 | gzip -c > /tmp/tcpdump.txt.gz

    Then I run:
    gunzip -c /tmp/tcpdump.txt.gz | ./pt-query-digest --type tcpdump > /tmp/digest_output.txt


    With the second command, I am getting the following errors with PERL:

    [root@ip-10-0-5-103 bin]# gunzip -c /tmp/tcpdump.txt.gz | ./pt-query-digest --type tcpdump > /tmp/digest_output.txt
    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 ./pt-query-digest line 3165.
    BEGIN failed--compilation aborted at ./pt-query-digest line 3165.
    [root@ip-10-0-5-103 bin]#

    Any idea on how to solve this error message on PERL?

    Thanks,
    Michel Z.

  • #2
    Try this solution
    yum install -y perl-libwww-perl perl-Time-HiRes

    http://www.desertcrystal.com/blog/34...f-centos6-perl

    Comment

    Working...
    X