编译安装memcache模块时,出现以下报错:
memcache.c:34:18: error: zlib.h: No such file or directory
字面上的意思是,没有安装zlib。但实际上是有安装的:
[root@localhost ~]# rpm -qa|grep zlib
zlib-1.2.3-29.el6.x86_64
尝试重新configure,并显式指定zlib的路径:
./configure --enable-memcache --with-php-config=/usr/local/php54/bin/php-config --with-zlib-dir=/lib64/
又提示找不到zlib的相关文件:
configure: error: Can't find ZLIB headers under "/lib64/
后来发现,安装zlib-devel可解决此问题:yum install zlib-devel -y
阅读(7813) | 评论(0) | 转发(0) |