Linux compile install MySQL prompt warning:prerequisite dbd::mysql 3 not found error

Source: Internet
Author: User
Tags install perl percona

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.