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