Jump to content


Photo

Php Installation Woes


  • Please log in to reply
1 reply to this topic

#1 mmcdonnell

mmcdonnell
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 02 June 2006 - 10:06 PM

I'm trying to install PHP 5.1.4 on RedHat(e) Enterprise 3
I'm having a very difficult time getting ./configure to work.

Here's what I'm doing so far:

./configure --with-apxs2=/usr/local/apache/bin/apxs --disable-cgi --with-config-file-path=/usr/local/apache/php --enable-force-cgi-redirect --disable-short-tags [b]--with-libxml-dir=/usr[/b] --with-openssl --with-zlib --enable-calendar --with-curl --with-mysql --with-mysqli --enable-soap

And this is what I get at the very end:

Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... /usr
checking for xml2-config path... /usr/bin/xml2-config
checking whether libxml build works... no
configure: error: build test failed.  Please check the config.log for details.

In config.log I get this:

configure:27282: checking whether to enable LIBXML support
configure:27320: result: yes
configure:27329: checking libxml2 install dir
configure:27347: result: /usr
configure:27359: checking for xml2-config path
configure:27373: result: /usr/bin/xml2-config
configure:27516: checking whether libxml build works
configure:27549: gcc -o conftest -g -O2   conftest.c

         -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm >&5
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../libxml2.so: undefined reference to `__memcpy_chk@GLIBC_2.3.4'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../libxml2.so: undefined reference to `__memmove_chk@GLIBC_2.3.4'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../libxml2.so: undefined reference to `__vfprintf_chk@GLIBC_2.3.4'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../libxml2.so: undefined reference to `__fprintf_chk@GLIBC_2.3.4'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../libxml2.so: undefined reference to `__strcat_chk@GLIBC_2.3.4'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../libxml2.so: undefined reference to `__snprintf_chk@GLIBC_2.3.4'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../libxml2.so: undefined reference to `__stack_chk_fail@GLIBC_2.4'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../libxml2.so: undefined reference to `__vsnprintf_chk@GLIBC_2.3.4'
collect2: ld returned 1 exit status

not that I mean to be a complete n00b... but I'm really lost, and I don't understand how to fix this error.
Any help you can offer would be fantastic!
Thanks to all for the help if I get it!

Michael

#2 mmcdonnell

mmcdonnell
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 05 June 2006 - 02:22 PM

Solved!

The problem has to do with the way the LibXML2 RPMs work.... it had to be installed from the tar.gz file to work correctly.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users