php5 installation failed - zlib error

Alan John Fergy

Verified User
Joined
Feb 24, 2009
Messages
27
Location
Germany
Hi guys!

I have an unsolved problem with updating from php5.2.3 to 5.2.9
Using custombuild 1.2, DA V. 1.336
All version updates work fine, but if I want to update

php5 with :

Code:
./build update_versions

I get the folllowing error:

Code:
checking if the location of ZLIB install directory is defined... /usr/local/lib
checking for gzgets in -lz... no
configure: error: ZLIB extension requires zlib >= 1.0.9

*** There was an error while trying to configure php. Check the configure/ap2/configure.php5 file

I already built :
Code:
./build zlib
and
Code:
 yum install zlib

Building zlib works fine! No errors!

but:
Code:
./build php 5
or
Code:
 ./build all
or
Code:
./build all -d
or
Code:
 ./build update_versions

doesn't work. zlib is installed in the newst version 1.2.3

What can I do to update to php 5.2.9?

I appreciate all hints for solution!

Thank you very much!!!!
 
Last edited:
Please check /usr/local/directadmin/custombuild/php-5.2.9/config.log for more info.
 
Thanks for the fast reply .....:) but......

Sorry, there is no /php-5.2.9/ folder in my custombuild-folder.

Additional info: My server uses Fedora 7

config.logs are only availiable for the apache Server , SpamAssassin and ncftp-3.2.1

Has it something to do with SSL?
 
If you did the YUM update after the ./build zlib, that might have hoarked things up. Redo the./build zlib and then "ldconfig". Then try to build PHP again. The Yum installer will put the zlib libraries in /usr/lib where DA puts almost everything in /usr/local/* (in zlib's case, /usr/local/lib).
 
nothing changed! I did:

I build :

1. ) ./build zlib ( successful)

2.) ldconfig (-> with no output)

3. ) ./build php 5

The same error!
 
Thanks for the fast reply .....:) but......

Sorry, there is no /php-5.2.9/ folder in my custombuild-folder.

You cannot run anything after "./build php", because every command cleans the custombuild folder (unless you have clean=no set).
 
Did you ever solve your problem? If so what was the solution?

I am having this exact same problem on 3 out of like 20 servers, they're ALL centos 5 64 bit, they should all be setup just about identical, yet these 3 will not compile php. I've checked rpms, yum installs, build zlib, everything looks right, it's just kicking my butt at at his point.

checking for ZLIB support... yes
checking if the location of ZLIB install directory is defined... /usr/local/lib
checking for gzgets in -lz... no
configure: error: ZLIB extension requires zlib >= 1.0.9

*** There was an error while trying to configure php. Check the configure/ap2/configure.php5 file

If I simply remove the zlib entries I get this on a build php:

checking for curl_easy_perform in -lcurl... no
configure: error: There is something wrong. Please check config.log for more information.

*** There was an error while trying to configure php. Check the configure/ap2/configure.php5 file
 
Well damn, this fixed my issue:

ln -sf /usr/lib64/libgssapi_krb5.so.2.2 /usr/lib/libgssapi_krb5.so
ln -sf /usr/lib64/libkrb5.so.3.3 /usr/lib/libkrb5.so
ln -sf /usr/lib64/libk5crypto.so.3.1 /usr/lib/libk5crypto.so
ln -sf /lib64/libcom_err.so.2 /usr/lib/libcom_err.so
ln -sf /usr/lib64/libexpat.so /usr/lib/libexpat.so
ln -sf /usr/lib64/libm.so /usr/lib/libm.so
ln -sf /usr/lib64/libssl.so /usr/lib/libssl.so


Funny thing is that's the first thing I DO to a new server, my guess is a yum update overwrote some of these I guess.
 
Back
Top