pt-query-digest: getting PERL compilation error message


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/ 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?

Michel Z.

Try this solution
yum install -y perl-libwww-perl perl-Time-HiRes…f-centos6-perl