Mombu the Php Forum

Go Back   Mombu the Php Forum > Php > PHP installation
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 23rd October 19:34
richardh
External User
 
Posts: 1
Default PHP installation



Hi,

Trying to install PHP, however it's failing with the following:

Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... /usr/lib64
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.


The following is in config.log:

configure:20028: checking whether libxml build works
configure:20055: gcc -o conftest -g -O2 conftest.c

-lresolv -lm -ldl -lnsl -lxml2 -lz -lm 1>&5
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
configure: failed program was:
#line 20044 "configure"
#include "confdefs.h"


char xmlInitParser();
int main() {
xmlInitParser();
return 0;
}

If it helps, this is a bit of an `ls -l` of /usr/lib64:

libxml2.so -> libxml2.so.2.6.27
libxml2.so.2 -> libxml2.so.2.6.27
libxml2.so.2.6.19
libxml2.so.2.6.27

And this is what's at the end of my config.log:

configure:19793: checking whether to enable LIBXML support
configure:19841: checking libxml2 install dir
configure:19870: checking for xml2-config path
configure:20028: checking whether libxml build works
configure:20055: gcc -o conftest -g -O2 conftest.c

-lresolv -lm -ldl -lnsl -lxml2 -lz -lm 1>&5
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
configure: failed program was:
#line 20044 "configure"
#include "confdefs.h"


char xmlInitParser();
int main() {
xmlInitParser();
return 0;
}


Thanks.


--
Richard Heyes
+44 (0)800 0213 172
http://www.websupportsolutions.co.uk

Knowledge Base and HelpDesk software
that can cut the cost of online support
  Reply With Quote


 


2 23rd October 19:35
per
External User
 
Posts: 1
Default PHP installation



Looks like you need to install libz.


/Per Jessen, Zürich
  Reply With Quote
3 23rd October 19:35
richardh
External User
 
Posts: 1
Default PHP installation


I installed various zlib and zlib-devel packages, but finally went with
an rpm, but when I run `apachectl configtest` I get this:

Cannot load /usr/lib64/httpd/modules/libphp5.so into server:
/usr/lib64/httpd/modules/libphp5.so: undefined symbol: apr_pool_cleanup_null

Umm help?

--
Richard Heyes
+44 (0)800 0213 172
http://www.websupportsolutions.co.uk

Knowledge Base and HelpDesk software
that can cut the cost of online support
  Reply With Quote
4 23rd October 19:35
richardh
External User
 
Posts: 1
Default PHP installation


OK so now I'm back to compiling PHP after the ridiculous nightmare of
rpms. I checked /lib and have the following:

[root@s15277576 php-5.2.4]# ls -l /lib/libz.so.1.2.3
-rwxr-xr-x 1 root root 71744 Sep 21 19:23 /lib/libz.so.1.2.3

Is PHP looking for a different file?

Thanks.

--
Richard Heyes
+44 (0)800 0213 172
http://www.websupportsolutions.co.uk

Knowledge Base and HelpDesk software
that can cut the cost of online support
  Reply With Quote
5 23rd October 19:37
per
External User
 
Posts: 1
Default PHP installation


Richard, sorry for leaving you hanging this afternoon.

Try this:
find /lib /usr/lib -iname libz\* -ls
You should see:
/lib/libz.so.1 -> libz.so.1.2.3 /lib/libz.so.1.2.3
/usr/lib/libz.so.1 -> libgz.so.1 ls /usr/lib/libgz*
/usr/lib/libgz.so.1 -> /lib/libz.so.1*


Your libz is in the right place, but check your symlinks.


/Per Jessen, Zürich
  Reply With Quote
6 24th October 07:48
richardh
External User
 
Posts: 1
Default PHP installation


....
Thanks for the help. I've got it installed now. In the end I found that
the server came with 5.1.6 installed (:/), which despite not being
5.2.x, is still a jump from the 5.0.x I had before.

--
Richard Heyes
+44 (0)800 0213 172
http://www.websupportsolutions.co.uk

Knowledge Base and HelpDesk software
that can cut the cost of online support
  Reply With Quote
Reply


Thread Tools
Display Modes




666