Originally was ready to install Maatkit, but Maatkit has become a part of the Percona-toolkit, so simply install Percona-toolkit directly.
Preparing for the installation environment (very important), because Percona-toolkit requires a Perl environment, you know what we have to prepare for what it needs. The following is a summary of my experience of the installation process to write a script, you can use directly, eliminating the pain of the installation process.
#!/bin/bash
yum-y Install perl-devel
mkdir ~/test
cd ~/test
#下载perl环境所需安装包并安装
wget www.cpan.org/authors/id/T/TI/TIMB/DBI-1.628.tar.gz
tar zxf dbi-1.628.tar.gz
cd DBI-1.628
perl makefile.pl make
&& make install
CD.
wget http://www.cpan.org/authors/id/M/MS/MSCHWERN/Test-Simple-0.98.tar.gz
tar zxf test-simple-0.98.tar.gz
CD test-simple-0.98
perl makefile.pl make
&& make install
CD.
wget http://www.cpan.org/authors/id/Z/ZE/ZEFRAM/Time-HiRes-1.9726.tar.gz
tar zxf time-hires-1.9726.tar.gz
CD time-hires-1.9726
perl makefile.pl make
&& make install
CD.
wget http://www.cpan.org/authors/id/A/AN/ANDK/CPAN-2.00.tar.gz
tar zxf cpan-2.00.tar.gz
CD CPAN-2.00
Perl makefile.pl make
&& make install
CD.
wget http://www.percona.com/redir/downloads/percona-toolkit/2.2.4/percona-toolkit-2.2.4.tar.gz
Tar zxf percona-toolkit-2.2.4.tar.gz
cd percona-toolkit-2.2.4
perl makefile.pl make
&& make install
CD
I have tested it and can use it.
This article is from the "embrace open source world sharing open Source Technology" blog, please be sure to keep this source http://heisedeyan.blog.51cto.com/3392968/1285391