执行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.*