For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > February 2006 > Re: [PHP-INSTALL] Problem building php 5.1.2,









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-INSTALL] Problem building php 5.1.2,
Paul Reinheimer

2006-02-26, 6:57 pm

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=3D/usr/local/mysql'
'--with-apxs=3D/etc/httpd/bin/apxs' '--with-gd' '--with-png'
'--with-zlib-dir=3D/root/zlib-1.2.2' '--enable-gd-native-ttf'
'--with-ttf' '--with-jpeg-dir=3D/usr/local/lib/jpeg-6b/'
'--with-freetype-dir=3D/usr/local/lib/freetype-2.1.9/'
'--with-xpm-dir=3D/usr/X11R6/' '--with-tidy' '--with-curl'
'--with-openssl=3D/usr/local/' '--enable-dba=3Dshared' '--with-db4'
'--disable-eapi' '--with-xsl' '--enable-memory-limit'
'--with-libxml-dir=3D/usr/otherLocal/include/libxml2/'

'./configure' '--with-mysql=3D/usr/local/mysql'
'--with-apxs=3D/etc/httpd/bin/apxs' '--with-gd' '--with-png'
'--with-zlib-dir=3D/root/zlib-1.2.2' '--enable-gd-native-ttf'
'--with-ttf' '--with-jpeg-dir=3D/usr/local/lib/jpeg-6b/'
'--with-freetype-dir=3D/usr/local/lib/freetype-2.1.9/'
'--with-xpm-dir=3D/usr/X11R6/' '--with-tidy' '--with-curl'
'--with-openssl=3D/usr/local/' '--enable-dba=3Dshared' '--with-db4'
'--disable-eapi' '--with-xsl' '--enable-memory-limit'

'./configure' '--with-mysql=3D/usr/local/mysql'
'--with-apxs=3D/etc/httpd/bin/apxs' '--with-gd' '--with-png'
'--with-zlib-dir=3D/root/zlib-1.2.2' '--enable-gd-native-ttf'
'--with-ttf' '--with-jpeg-dir=3D/usr/local/lib/jpeg-6b/'
'--with-freetype-dir=3D/usr/local/lib/freetype-2.1.9/'
'--with-xpm-dir=3D/usr/X11R6/' '--with-tidy' '--with-curl'
'--with-openssl=3D/usr/local/' '--enable-dba=3Dshared' '--with-db4'
'--disable-eapi' '--with-xsl' '--enable-memory-limit'
'--with-libxml-dir=3D/usr/otherLocal/lib/'

'./configure' '--with-mysql=3D/usr/local/mysql'
'--with-apxs=3D/etc/httpd/bin/apxs' '--with-gd' '--with-png'
'--with-zlib-dir=3D/root/zlib-1.2.2' '--enable-gd-native-ttf'
'--with-ttf' '--with-jpeg-dir=3D/usr/local/lib/jpeg-6b/'
'--with-freetype-dir=3D/usr/local/lib/freetype-2.1.9/'
'--with-xpm-dir=3D/usr/X11R6/' '--with-tidy' '--with-curl'
'--with-openssl=3D/usr/local/' '--enable-dba=3Dshared' '--with-db4'
'--disable-eapi' '--with-xsl' '--enable-memory-limit'
'--with-libxml-dir=3D/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

[root@sharethebeat php-5.1.2]# grep libxml2 config.log
configure:19773: checking libxml2 install dir
configure:88107: gcc -o conftest -I/usr/include -g -O2=20
-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, php@karsites.net <php@karsites.net> 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=3D/usr/local/apache-2.2.0/bin/apxs'
> '--prefix=3D/usr/local/php-5.1.2'
> '--with-mysql=3Dshared,/downloads/mysql/bin/mysql-standard-5.0.18-linux-i=

686'
> '--with-mysqli=3Dshared,/downloads/mysql/bin/mysql-standard-5.0.18-linux-=

i686/bin/mysql_config'
> '--with-mysql-sock=3D/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:
>
>



--
Paul Reinheimer
Zend Certified Engineer
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com