Configure:error:Cannot find Php_pdo_driver.h.

Source: Internet
Author: User

Installing Pdo_mysql

cd/usr/local/src/php-5.4.0/ext/pdo_mysql/

/usr/local/php/bin/phpize #/usr/local/php for PHP post-installation directory

./configure--with-php-config=/usr/local/php/bin/php-config--with-pdo-mysql=/usr/local/mysql

sudo make && sudo make install

Report Configure:error:Cannot find Php_pdo_driver.h. Error

The reason is that you need to install PDO before installing Pdo_mysql

CD php5.4/ext/pdo/

/usr/local/php/bin/phpize

./configure--with-php-config=/usr/local/webserver/php/bin/php-config--enable-pdo=shared

Make &&make Install

And then

Add the following lines to the Php/lib/php.ini file

Extension_dir = "/usr/local/webserver/php/lib/php/extensions/no-debug-non-zts-20100525/"
Extension=pdo.so
Extension=pdo_mysql.so

Configure:error:Cannot find Php_pdo_driver.h.

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.