Hello, I am trying to install PDO_MYSQL-1.0.2 for php 5.2.3 (CGI). cd PDO_MYSQL-1.0.2 /usr/local/php5/bin/phpize ./configure throws this, checking for mysql_commit... yes checking for mysql_stmt_prepare... yes checking for mysql_next_result... yes checking for mysql_sqlstate... yes checking for PDO includes... checking for PDO includes... configure: error: Cannot find php_pdo_driver.h. The file does exist at /usr/local/php5/include/php/ext/pdo/php_pdo_driver.h I have tried appending the CPPFLAGS='I/usr/local/php5/include/php/ext/pdo/` to the configure statement but that hasn't corrected the issue and the configure statement fails to find the PDO include directory. Installation using pecl fails with the same error. /usr/local/php5/bin/pecl install pdo_mysql The server already has PDO installed and pdo_slite. Any suggestions or pointers are much appreciated. Thanks
Which distribution are you using? If it's Debian or Ubuntu, you can search for the package that contains php_pdo_driver.h like this: http://www.howtoforge.com/apt_file_debian_ubuntu