Re: Problem building php 5.1.2,
| From: | Paul Reinheimer | Date: | Sun, 26 Feb 2006 02:45:57 +0000 |
| Subject: | Re: Problem building php 5.1.2, | ||
| References: | 1 2 3 4 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-17105@lists.php.net to get a copy of this message | ||
It's looking at the new version, dated today. For which i've got no -devel
pack.
[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
-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
Do I need to find a non-rpm copy of the -devel packages? Or somehow convince
my system to upgrade it's RPMs?
paul
On 2/25/06, Rasmus Lerdorf <rasmus@lerdorf.com> wrote:
>
> Instead of
>
> --with-libxml-dir=/usr/local/lib/
>
> try
>
> --with-libxml-dir=/usr/local
>
> I think it is picking up the wrong xml-config script and thus the wrong
> libxml2 library.
>
> Do this: grep libxml2 config.log
>
> That should give you a clue which libxml2 it is trying to use.
>
> -Rasmus
>
> Paul Reinheimer wrote:
> > Hi, thanks for the reply.
> >
> > I installed libxml2-2.6.23 directly from source, I'm trapped in some
> > RHEL dependency hell (namely I can't upgrade these packages because
> > external things like up2date need the current version) that's
> > prevented me from using the RPMs. I haven't seen any non .rpm -devel
> > packages so the install was attempted without one.
> >
> >
> > paul
> >
> > (to put a face to a name, we met at PHP|Works, I sat across from you
> > at the speakers dinner)
> >
> >
> > On 2/25/06, Rasmus Lerdorf <rasmus@lerdorf.com> wrote:
> >> Paul Reinheimer wrote:
> >>> 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
> >> Looks to me like a libxml2 problem. What sort of libxml2-dev package
> do
> >> you have installed? I am surprised the configure check didn't
> complain.
> >>
> >> -Rasmus
> >>
> >
> >
> > --
> > Paul Reinheimer
> > Zend Certified Engineer
>
>
--
Paul Reinheimer
Zend Certified Engineer