php-5.3.6 交叉编译 发生错误configure: error: ZLIB extension requires zlib >= 1.0.9

安装zlib-1.2.7

#cd  /zlib-1.2.7
# CC=arm-linux-gcc  ./configure  --prefix=~/libz  --enable-shared 
# make 
# make  install

然后编译php

# CC=arm-linux-gcc ./configure --host=arm-linux --prefix=/usr/local/php --enable-pdo  --with-zlib  --with-libxml  --with-gd  --with-freetype  --with-jpeg --with-png --enable-mbstring  --with-mysql=/usr/local/mysql/  --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-gd-native-ttf   --with-gettext=/usr/local/gettext/   --enable-magic-quotes--enable-sockets  --with-zlib -dir=~/libz --without-iconv

错误:checking if the location of ZLIB install directory is defined... ~/libz
checking for gzgets in -lz... no
configure: error: ZLIB extension requires zlib >= 1.0.9

图片说明
跪求解决办法!

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐