Edit report at https://bugs.php.net/bug.php?id=63221&edit=1
ID: 63221 Updated by: s...@php.net Reported by: mamfelt at gmail dot com Summary: configure --prefix=/opt fails to search /opt/<subdirs> for packages -Status: Open +Status: Not a bug Type: Bug Package: *Configuration Issues Operating System: AIX PHP Version: Irrelevant Block user comment: N Private report: N New Comment: The --prefix option is the directory that PHP will be installed. It isn't used as a search path. Run "./configure --help" to check the option to use. See -- with-libxml-dir PHP 5.4 uses the 2.59+ versions of the tools To use a specific version of the build tools, install that version and then run, for example: export PHP_AUTOCONF=autoconf-2.13 export PHP_AUTOHEADER=autoheader-2.13 ./buildconf If you use buildconf in older versions of PHP, you need to manually clear the caches first with: rm -rf config.cache autom4te.cache Previous Comments: ------------------------------------------------------------------------ [2012-10-05 10:06:49] mamfelt at gmail dot com Description: ------------ ./configure --prefix /opt ==== Basically, to resolve this I "patch" configure so that all references to /usr/local are replaced by /opt. Note: I have tried ./buildconf --force but get the following message: root@x104:[/data/prj/php/php-RC1-5.3.18]./buildconf --force Forcing buildconf buildconf: checking installation... buildconf: You need autoconf 2.59 or lower to build this version of PHP. You are currently trying to use 2.68 Most distros have separate autoconf 2.13 or 2.59 packages. On Debian/Ubuntu both autoconf2.13 and autoconf2.59 packages exist. Install autoconf2.13 and set the PHP_AUTOCONF env var to autoconf2.13 and try again. make: *** [buildmk.stamp] Error 1 ====== I went to the autoconf downloads and see that autoconf-2.59 is rather ancient, and wonder if this problem is already resolved using newer tools? [ ] autoconf-2.12.tar.gz 26-Nov-1996 03:00 401K [ ] autoconf-2.13.tar.gz 15-Jan-1999 16:03 433K [ ] autoconf-2.50-2.52.xdelta 18-Jul-2001 09:59 58K ... [ ] autoconf-2.59.tar.bz2 16-Dec-2003 15:53 903K [ ] autoconf-2.59.tar.bz2.sig 16-Dec-2003 15:52 65 [ ] autoconf-2.59.tar.gz 16-Dec-2003 15:52 1.2M [ ] autoconf-2.59.tar.gz.sig 16-Dec-2003 15:52 65 [ ] autoconf-2.60.tar.bz2 26-Jun-2006 13:02 1.0M ... [ ] autoconf-2.68.tar.xz 22-Sep-2010 18:54 1.1M [ ] autoconf-2.68.tar.xz.sig 22-Sep-2010 18:54 556 [ ] autoconf-2.69.tar.gz 24-Apr-2012 23:17 1.8M [ ] autoconf-2.69.tar.gz.sig 24-Apr-2012 23:17 556 [ ] autoconf-2.69.tar.xz 24-Apr-2012 23:17 1.2M [ ] autoconf-2.69.tar.xz.sig 24-Apr-2012 23:17 556 Test script: --------------- ./configure --prefix=/opt ... checking for xml2-config path... configure: error: xml2-config not found. Please check your libxml2 installation. root@x104:[/data/prj/php/php-RC1-5.3.18] Expected result: ---------------- ... ... +--------------------------------------------------------------------+ | License: | | This software is subject to the PHP License, available in this | | distribution in the file LICENSE. By continuing this installation | | process, you are bound by the terms of this license agreement. | | If you do not agree with the terms of this license, you must abort | | the installation process at this point. | +--------------------------------------------------------------------+ Thank you for using PHP. Actual result: -------------- checking for xml2-config path... configure: error: xml2-config not found. Please check your libxml2 installation. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=63221&edit=1