The following error occurred while compiling percona-toolkit-2.2.9:
Checking If your kit is complete ...
Looks Good
Warning:prerequisite Dbd::mysql 3 not found.
Writing Makefile for Percona-toolkit
According to the recommendation, the MySQL module used by Perl is not installed
The solution is as follows:
1, if CentOS machine is installed yum, then direct yum install perl-dbd-mysql-y solve the battle
2, the source code needs to compile the package
wget http://search.cpan.org/CPAN/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.027.tar.gz
wget http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/DBI-1.631.tar.gz
Separately resolved, the installation steps can look at the corresponding file install, the steps are basically consistent
Perl makefile.pl
Make
Make install
After the installation, reinstall the next percona-toolkit-2.2.9 will be OK
Add: In Sina blog See a solution
Install the missing packages
Yum Install Perl-dbd-mysql
Then, recompile
Perl makefile.pl
Writing Makefile for Percona-toolkit
Go on
Make && make test && make install
"Note" Requires root permission, otherwise make install error