- 主题:求助 ZLIB extension requires zlib >= 1.0.9
zlib 怎么装的?具体装在什么位置?
【 在 ukbee (ukbee) 的大作中提到: 】
: 安装php时候,
: config总是不通过,提示
: ZLIB extension requires zlib >= 1.0.9
: ...................
--
FROM 128.12.150.*
多种树,少放屁。
【 在 JulyClyde (七月) 的大作中提到: 】
: 你不是会装嘛,咋又开始问这么基础的问题了?
--
FROM 128.12.150.*
php configure命令怎么写的?config.log有什么错误信息么。。
【 在 ukbee (ukbee) 的大作中提到: 】
: 是fc4系统,
: rpm自动安装的zlib,zlib-dev
: 安装位置不知道,应该是默认的吧
: ...................
--
FROM 128.12.150.*
执行file /usr/lib/gcc/x86_64-redhat-linux/4.0.2/../../../libz.so
看看结果
【 在 ukbee (ukbee) 的大作中提到: 】
: log的后面内容
: configure:18186: checking for ZLIB support
: configure:18232: checking if the location of ZLIB install directory is defined
: configure:18626: checking for gzgets in -lz
: configure:18645: gcc -o conftest -g -O2 conftest.c -lz -lresolv -lm -ldl -lnsl 1>&5
: /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.0.2/../../../libz.so when searching for -lz
: /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.0.2/../../../libz.a when searching for -lz
: /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
: /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
: /usr/bin/ld: cannot find -lz
: collect2: ld returned 1 exit status
: configure: failed program was:
: #line 18634 "configure"
: #include "confdefs.h"
: /* Override any gcc2 internal prototype to avoid an error. */
: /* We use char because int might match the return type of a gcc2
: builtin and then its argument prototype would still apply. */
: char gzgets();
: int main() {
: gzgets()
: ; return 0; }
--
FROM 128.12.150.*
...你还真是我说一步你就只做一步...:)
那再file这个libz.so.1.2.2.2看看
或者file加-L参数
【 在 ukbee (ukbee) 的大作中提到: 】
: # file /usr/lib/gcc/x86_64-redhat-linux/4.0.2/../../../libz.so
: /usr/lib/gcc/x86_64-redhat-linux/4.0.2/../../../libz.so: symbolic link to `libz.so.
: 1.2.2.2'
: ...................
--
FROM 128.12.150.*
我估计是,看目录,他是64bit的机器
我估计他装的是64bit的zlib,但是他试图32bit编译php,或者反一反。
另外,64bit编译php似乎需要一点点技巧
【 在 JulyClyde (七月) 的大作中提到: 】
: 你的意思是,他装的zlib的arch是错的?
--
修改:atppp FROM 128.12.150.*
FROM 128.12.150.*