#39720 [NEW]: Compile Fails with " php_config.h: No such file or directory"

From: Date: Sun, 03 Dec 2006 06:19:48 +0000
Subject: #39720 [NEW]: Compile Fails with " php_config.h: No such file or directory"
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-105813@lists.php.net to get a copy of this message
From: codeslinger at compsalot dot com Operating system: Fedora Core 2 PHP version: 5.2.0 PHP Bug Type: Compile Failure Bug description: Compile Fails with " php_config.h: No such file or directory" Description: ------------ I am attempting to install PHP 5.2.0 cli (from tarball) onto my server. The server is a Fedora Core 2. I have previously installed php-4.3.10 onto this server (from tarball) without difficulty. First Problem I ran into was the dependency on libxml. After an initial attempt to disable PHP5s use of libxml, I gave in and (attempted to) install libxml from tarball. Next Problem was that libxml 2.2.6.27, despite claims of being stand-alone, is in fact dependent upon python. Fedora Core 2 has python version 2.2 preinstalled from rpms. libxml 2.2.6.27 was not happy with this version of python. So I ended up installing python 2.5 using a --prefix and leaving the original intact. Python 2.5 installed without difficulty After some additional tweaking with ld.so.conf; libxml installed without further difficulty. also using a --prefix However, PHP 5.2.0 cli still refused to install. I then became very aggressive about eliminating/disabling functionality to get it to a lowest complexity build. Reproduce code: --------------- ./configure --no-create --enable-cli --enable-pcntl --enable-posix --enable-shmop --enable-sigchild --enable-sockets --enable-memory-limit --enable-track-vars --prefix=/usr/local/php5 --with-config-file-path=/etc/php5 --with-config-file-scan-dir=/etc/php5/php5.d --datadir=/var/tmp/php5/data --localstatedir=/var/tmp/php5 --sharedstatedir=/var/tmp/php5/com --sysconfdir=/etc --mandir=/usr/share/man --infodir=/usr/share/info --cache-file=./config.cache --disable-debug --disable-magic-quotes --without-oci8 --with-mime-magic=/usr/share/magic.mime --enable-bcmath --disable-xml --disable-libxml --disable-dom --disable-simplexml --disable-wddx --disable-xmlreader --disable-xmlwriter --without-pear --disable-openssl --disable-pcre make clean make Note: Despite the fact that I have specified to disable PCRE, PHP5 still insists upon compiling it. Expected result: ---------------- for a PHP5 cli to be built that can co-exist with a PHP4 cli Actual result: -------------- In file included from /usr/local/src/files/php/php-5.2.0/ext/pcre/pcrelib/pcre_ucp_searchfuncs.c:44: /usr/local/src/files/php/php-5.2.0/ext/pcre/pcrelib/pcre_internal.h:71:25: php_config.h: No such file or directory In file included from /usr/local/src/files/php/php-5.2.0/ext/pcre/pcrelib/pcre.h:42, from /usr/local/src/files/php/php-5.2.0/ext/pcre/pcrelib/pcre_internal.h:149, from /usr/local/src/files/php/php-5.2.0/ext/pcre/pcrelib/pcre_ucp_searchfuncs.c:44: /usr/local/src/files/php/php-5.2.0/main/php_compat.h:27:24: php_config.h: No such file or directory make: *** [ext/pcre/pcrelib/pcre_ucp_searchfuncs.lo] Error 1 Note: The version of perl which is on this server is v5.8.4. This was also preinstalled via rpm. It is not clear to me if there is a seperate PCRE package that I need to update. It appears to me that PHP is supplying all of the code for the PCRE package. -- Edit bug report at http://bugs.php.net/?id=39720&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39720&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39720&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39720&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39720&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39720&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39720&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39720&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39720&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39720&r=support Expected behavior: http://bugs.php.net/fix.php?id=39720&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39720&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39720&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39720&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39720&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39720&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39720&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39720&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39720&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39720&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39720&r=mysqlcfg

« previous php.bugs (#105813) next »