Okay, I installed libxml2 and libxml2-devel in /usr/otherLocal (I lack creativity and the *nix fu to think of a better place).
I've tried installing with './configure' '--with-mysql=/usr/local/mysql' '--with-apxs=/etc/httpd/bin/apxs' '--with-gd' '--with-png' '--with-zlib-dir=/root/zlib-1.2.2' '--enable-gd-native-ttf' '--with-ttf' '--with-jpeg-dir=/usr/local/lib/jpeg-6b/' '--with-freetype-dir=/usr/local/lib/freetype-2.1.9/' '--with-xpm-dir=/usr/X11R6/' '--with-tidy' '--with-curl' '--with-openssl=/usr/local/' '--enable-dba=shared' '--with-db4' '--disable-eapi' '--with-xsl' '--enable-memory-limit' '--with-libxml-dir=/usr/otherLocal/include/libxml2/' './configure' '--with-mysql=/usr/local/mysql' '--with-apxs=/etc/httpd/bin/apxs' '--with-gd' '--with-png' '--with-zlib-dir=/root/zlib-1.2.2' '--enable-gd-native-ttf' '--with-ttf' '--with-jpeg-dir=/usr/local/lib/jpeg-6b/' '--with-freetype-dir=/usr/local/lib/freetype-2.1.9/' '--with-xpm-dir=/usr/X11R6/' '--with-tidy' '--with-curl' '--with-openssl=/usr/local/' '--enable-dba=shared' '--with-db4' '--disable-eapi' '--with-xsl' '--enable-memory-limit' './configure' '--with-mysql=/usr/local/mysql' '--with-apxs=/etc/httpd/bin/apxs' '--with-gd' '--with-png' '--with-zlib-dir=/root/zlib-1.2.2' '--enable-gd-native-ttf' '--with-ttf' '--with-jpeg-dir=/usr/local/lib/jpeg-6b/' '--with-freetype-dir=/usr/local/lib/freetype-2.1.9/' '--with-xpm-dir=/usr/X11R6/' '--with-tidy' '--with-curl' '--with-openssl=/usr/local/' '--enable-dba=shared' '--with-db4' '--disable-eapi' '--with-xsl' '--enable-memory-limit' '--with-libxml-dir=/usr/otherLocal/lib/' './configure' '--with-mysql=/usr/local/mysql' '--with-apxs=/etc/httpd/bin/apxs' '--with-gd' '--with-png' '--with-zlib-dir=/root/zlib-1.2.2' '--enable-gd-native-ttf' '--with-ttf' '--with-jpeg-dir=/usr/local/lib/jpeg-6b/' '--with-freetype-dir=/usr/local/lib/freetype-2.1.9/' '--with-xpm-dir=/usr/X11R6/' '--with-tidy' '--with-curl' '--with-openssl=/usr/local/' '--enable-dba=shared' '--with-db4' '--disable-eapi' '--with-xsl' '--enable-memory-limit' '--with-libxml-dir=/usr/otherLocal' All of them still crap out on make, but make it through ./configure okay. Am I just not giving it the right path? When I do the grep Rasmus suggested I invariably get [EMAIL PROTECTED] php-5.1.2]# grep libxml2 config.log configure:19773: checking libxml2 install dir configure:88107: gcc -o conftest -I/usr/include -g -O2 -I/usr/local/include/libxml2 -I/usr/local//include -I/usr/local/include -I/usr/src/php-5.1.2/ext/date/lib -I/usr/X11R6//include -I/usr/include/freetype2 -I/usr/local/mysql/include -I/usr/src/php-5.1.2 -L/usr/lib -L/usr/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/local//lib -L/usr/local//lib -Wl,-rpath,/usr/kerberos/lib -L/usr/kerberos/lib -Wl,-rpath,/usr/X11R6//lib -L/usr/X11R6//lib -Wl,-rpath,/usr/local/mysql/lib -L/usr/local/mysql/lib conftest.c -lrt -lmysqlclient -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -ldb-4.2 -lcurl -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lcurl -lssl -lcrypto -ldl -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz -lxml2 -lz -lm -lxml2 -lz -lm 1>&5 paul On 2/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I have php 5.1.2 installed on SuSE Linux 9.2 pro, compiled > against apache 2.2.0 source, and mysql 5.0.18 .tar.gz > static binary. > > Here is my ./configure command: > > Configure Command > './configure' > '--with-apxs2=/usr/local/apache-2.2.0/bin/apxs' > '--prefix=/usr/local/php-5.1.2' > '--with-mysql=shared,/downloads/mysql/bin/mysql-standard-5.0.18-linux-i686' > '--with-mysqli=shared,/downloads/mysql/bin/mysql-standard-5.0.18-linux-i686/bin/mysql_config' > '--with-mysql-sock=/var/lib/mysql/mysql.sock' > > Note that I did not even specify --with-liblxml-dir, but php > still compiled OK with libxml2 a part of php, and not as a > shared module. > > libXML support active > libXML Version 2.6.12 > libXML streams enabled > > Does configure complain if you leave out the path to libmxl2? > > Obviously you will need the development files to compile > libxlm2 into php 5.1.2. > > If your system insists on having the RPM version of libxml2 > installed, would it be possible to install the latest > version of libxml2 in a non-standard place, with the > development files, and then compile php 5.1.2 against that? > > Would that work? > > Keith > > > In theory, theory and practice are the same; > In practice they are not. > > On Sat, 25 Feb 2006, Paul Reinheimer wrote: > > > To: php-install@lists.php.net > > From: Paul Reinheimer <[EMAIL PROTECTED]> > > Subject: [PHP-INSTALL] Problem building php 5.1.2, > > > > Hi, I'm trying to compile PHP 5.1.2. (on linux, RHEL 3.1) > > My ./configure is: > > > > './configure' '--with-mysql=/usr/local/mysql' > > '--with-apxs=/etc/httpd/bin/apxs' '--with-gd' '--with-png' > > '--with-zlib-dir=/root/zlib-1.2.2' '--enable-gd-native-ttf' > > '--with-ttf' '--with-jpeg-dir=/usr/local/lib/jpeg-6b/' > > '--with-freetype-dir=/usr/local/lib/freetype-2.1.9/' > > '--with-xpm-dir=/usr/X11R6/' '--with-tidy' '--with-curl' > > '--with-openssl=/usr/local/' '--enable-dba=shared' '--with-db4' > > '--disable-eapi' '--with-xsl' '--enable-memory-limit' > > '--with-libxml-dir=/usr/local/lib/' > > > > make ends with > > > > collect2: ld returned 1 exit status > > make: *** [sapi/cli/php] Error 1 > > > > > > anyone got any ideas, or hints on what information I should be giving > > to make diagnosis easier/possible? > > > > The full output of make is available here: > > http://example.preinheimer.com/phpbuild.txt > > > > > > > > thanks > > paul > > > > -- > > Paul Reinheimer > -- Paul Reinheimer Zend Certified Engineer