![]() |
|
|
|
|
1
23rd October 19:34
External User
Posts: 1
|
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 |
|
|
|
|
3
23rd October 19:35
External User
Posts: 1
|
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 |
|
|
4
23rd October 19:35
External User
Posts: 1
|
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 |
|
|
6
24th October 07:48
External User
Posts: 1
|
....
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 |
|
| Some other forums that might be of your interest : Php 5 forum, Apache forum, Iis forum, Functions forum, Classes forum, Librarys forum, Bugs forum, Postgres forum, Mysql forum, Paradox forum, Ms sql forum, Configurations forum, Php.ini forum, Problems forum, Scripting forum, Css forum, General forums, Off-topic talk, Links, Extra forums, Php |