安装percona-toolkit工具时遇到的问题

1. 从这个链接https://www.percona.com/doc/percona-toolkit/3.0/index.html下载percona-toolkit安装包

2. 下载完成通过ftp工具上传到指定目录执行tar 命令解压 解压完成进入解压后的目录执行命令  perl Makefile.PL

执行该命令的时候可能会报这样的错误:

Can't locate ExtUtils/MakeMaker.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 Makefile.PL line 1.
BEGIN failed--compilation aborted at Makefile.PL line 1.

解决方法:yum install perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker cpan

3. 安装完成后 再次执行perl  Makefile.PL

4. 然后执行make && make install 进行编译安装,然而当使用pt-duplicate-key-checker --help 查看命令的常用参数时   报错:

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-duplicate-key-checker line 4371.
BEGIN failed--compilation aborted at /usr/local/bin/pt-duplicate-key-checker line 4371.

解决方法:   yum -y install perl-Digest-MD5

5. 到此就可以使用pt 相关的命令了

上一篇:org.springframework.web.servlet.view


下一篇:CArray CList CMap 插入与遍历效率对比