PHP Install issue

dynamic

New member
Joined
Nov 11, 2008
Messages
2
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

[root@host custombuild]#

[root@host custombuild]# yum install zlib
Package zlib-1.2.3-18.fc9.x86_64 already installed and latest version
 
Last edited:
Make sure you also have zlib-devel installed as that is what it looks for to compile.

# yum install zlib-devel
 
Well I fixed it thanks to the following: http://blog.sina.com.cn/s/blog_54b38e530100b872.html
I had to link to the 64bit libs.


Now I get this:

configure:59851: checking for mysql_error in -lmysqlclient
configure:59870: gcc -o conftest -I/usr/local/include -g -O2 -L/usr/local/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/kerberos/lib64 -L/usr/kerberos/lib64 -Wl,-rpath,/usr -L/usr conftest.c -lmysqlclient -lz -lmhash -lmcrypt -lltdl -liconv -lfreetype -lpng -lz -ljpeg -lcurl -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -liconv -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -ldl -lz -lcurl -lxml2 -lz -liconv -lm -lssl -lcrypto -ldl -lz 1>&5
/usr/bin/ld: cannot find -lmysqlclient

EDIT: FIXED
 
Last edited:
Back
Top