- 主题:求助 ZLIB extension requires zlib >= 1.0.9
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; }
【 在 JulyClyde (七月) 的大作中提到: 】
: config.log里面怎么写的?
: 难道是版本不对?
--
FROM 84.69.228.*
你的zlib是啥版本的?
【 在 ukbee (ukbee) 的大作中提到: 】
: log的后面内容
: configure:18186: checking for ZLIB support
: configure:18232: checking if the location of ZLIB install directory is defined
: ...................
--
FROM 222.130.187.*
zlib版本不太对吧?
【 在 ukbee (ukbee) 的大作中提到: 】
: log的后面内容
: configure:18186: checking for ZLIB support
: configure:18232: checking if the location of ZLIB install directory is defined
: ...................
--
FROM 61.51.125.*
zlib-devel-1.2.2.2-3
zlib-1.2.2.2-3
【 在 JulyClyde (七月) 的大作中提到: 】
: 你的zlib是啥版本的?
--
FROM 84.69.228.*
那要用什么版本?
【 在 fancyrabbit (兔兔猫★Initial F★那些故去的如果的事) 的大作中提到: 】
: zlib版本不太对吧?
--
FROM 84.69.228.*
执行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 /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'
【 在 atppp (Big Mouse) 的大作中提到: 】
: 执行file /usr/lib/gcc/x86_64-redhat-linux/4.0.2/../../../libz.so
: 看看结果
--
FROM 84.69.228.*
...你还真是我说一步你就只做一步...:)
那再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.*
你的意思是,他装的zlib的arch是错的?
【 在 atppp (Big Mouse) 的大作中提到: 】
: ...你还真是我说一步你就只做一步...:)
: 那再file这个libz.so.1.2.2.2看看
: 或者file加-L参数
: ...................
--
FROM 222.130.189.*
我估计是,看目录,他是64bit的机器
我估计他装的是64bit的zlib,但是他试图32bit编译php,或者反一反。
另外,64bit编译php似乎需要一点点技巧
【 在 JulyClyde (七月) 的大作中提到: 】
: 你的意思是,他装的zlib的arch是错的?
--
修改:atppp FROM 128.12.150.*
FROM 128.12.150.*