|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-10-06 02:51 UTC] jan dot declercq at gmail dot com
Description: ------------ Cannot find php_pdo_driver.h The ./configure script doesn't look in in /usr/include/php5 for the php_pdo_driver.h Extra info: #php -v PHP 5.3.3 (cli) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies # rpm -q php5 php5-5.3.3-0.1.2.x86_64 # rpm -q php5-pdo php5-pdo-5.3.3-0.1.2.x86_64 # php-config --include-dir /usr/include/php5 Reproduce code: --------------- pecl install -n pdo_informix Expected result: ---------------- pdo_informix should install.. Actual result: -------------- > checking for PDO includes... configure: error: Cannot find > php_pdo_driver.h. > ERROR: `/tmp/pear/download/PDO_INFORMIX-1.2.6/configure > --with-pdo-informix=/opt/IBM/informix' failed PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 01:00:01 2025 UTC |
I manually altered /tmp/pear/download/PDO_INFORMIX- 1.2.6/configure Where you have the lines: if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then pdo_inc_path=$abs_srcdir/ext elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then pdo_inc_path=$abs_srcdir/ext elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then pdo_inc_path=$prefix/include/php/ext else as_fn_error "Cannot find php_pdo_driver.h." "$LINENO" 5 fi I added this lines so it would find the header file: (../php5/.. instead of .../php/.. ) elif test -f $prefix/include/php5/ext/pdo/php_pdo_driver.h; then pdo_inc_path=$prefix/include/php5/ext