- 主题:求助 ZLIB extension requires zlib >= 1.0.9
安装php时候,
config总是不通过,提示
ZLIB extension requires zlib >= 1.0.9
但是linux确实已经安装了zlib, zlib-dev,并且版本都很高
怎么办啊?
请教怎么解决呢?
--
FROM 84.69.228.*
是fc4系统,
rpm自动安装的zlib,zlib-dev
安装位置不知道,应该是默认的吧
【 在 atppp (Big Mouse) 的大作中提到: 】
: zlib 怎么装的?具体装在什么位置?
--
FROM 84.69.228.*
./configure --prefix=/home/kbsweb/php --with-apxs=/home/kbsweb
/bin/apxs --disable-debug --enable-pic --disable-rpath --enable-inline-optimization --with-dom --with-gd --with-freetype-dir=/usr/lib --with-png-dir --with-iconv --with-jpeg-dir --with-zlib --enable-track-vars
config的时候,报错信息如下,但是zlib的位置,zlib,zlib-dev都是rpm包安装的
Configuring extensions
checking for OpenSSL support... no
checking for Kerberos support... no
checking for ZLIB support... yes
checking if the location of ZLIB install directory is defined... no
checking for gzgets in -lz... no
configure: error: ZLIB extension requires zlib >= 1.0.9
【 在 atppp (Big Mouse) 的大作中提到: 】
: php configure命令怎么写的?config.log有什么错误信息么。。
--
FROM 84.69.228.*
忘记说了,系统是fc4,自带apache2和php4,php5,不过不知道原来自带的那个系统安装路径是什么,文件分散在不同的文件夹位置,实在是不会看。
所以我另外又安装了一个apache1.3,想在1.3上安装php4.4.1,但是php4就无法config过去了
【 在 ukbee (ukbee) 的大作中提到: 】
: ./configure --prefix=/home/kbsweb/php --with-apxs=/home/kbsweb
: /bin/apxs --disable-debug --enable-pic --disable-rpath --enable-inline-optimization --with-dom --with-gd --with-freetype-dir=/usr/lib --with-png-dir --with-iconv --with-jpeg-dir --with-zlib --enable-track-vars
: config的时候,报错信息如下,但是zlib的位置,zlib,zlib-dev都是rpm包安装的
: ...................
--
FROM 84.69.228.*
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-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
/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.*
被a core这么一说,我真的想起来了
我那个服务器的确是linux 64bit的机器,原来已经自带apache2和php4,5
我找了zlib和zlib-dev的rpm都是i386for 32bit的好像,
请教a core有什么技巧在其中呢?
file /usr/lib/gcc/x86_64-redhat-linux/4.0.2/../../../libz.so -L
/usr/lib/gcc/x86_64-redhat-linux/4.0.2/../../../libz.so: ELF 32-bit LSB shared object, Intel 8
0386, version 1 (SYSV), stripped
file /usr/lib/gcc/x86_64-redhat-linux/4.0.2/../../../libz.so.1.2.2.2
/usr/lib/gcc/x86_64-redhat-linux/4.0.2/../../../libz.so.1.2.2.2: ELF 32-bit LSB shared object,
Intel 80386, version 1 (SYSV), stripped
【 在 atppp (Big Mouse) 的大作中提到: 】
: 我估计是,看目录,他是64bit的机器
: 我估计他装的是64bit的zlib,但是他试图32bit编译php,或者反一反。
: 另外,64bit编译php似乎需要一点点技巧
--
修改:ukbee FROM 130.88.96.*
FROM 130.88.96.*
顶一下
帮忙看看这个问题吧
好多天了都没有找到答案
【 在 ukbee (ukbee) 的大作中提到: 】
: 被a core这么一说,我真的想起来了
: 我那个服务器的确是linux 64bit的机器,原来已经自带apache2和php4,5
: 我找了zlib和zlib-dev的rpm都是i386for 32bit的好像,
: ...................
--
FROM 84.70.177.*