configure:error:memcache支持需要ZLIB。

时间:2015-07-23 08:08:00

标签: php centos xampp memcached

当尝试使用php在xmapp服务器中配置memcache时,按照以下步骤显示错误。

#/ opt / lampp / bin / phpize

Configuring for:
PHP Api Version:         20131106
Zend Module Api No:      20131226
Zend Extension Api No:   220131226

# ./configure --enable-memcache --with-php-config=/opt/lampp/bin/php-config

显示错误:

  

hecking ZLIB的位置......没有检查位置   zlib ... configure:错误:内存缓存支持需要ZLIB 。使用   --with-zlib-dir =指定ZLIB包含和库所在的前缀

2 个答案:

答案 0 :(得分:10)

确保安装了zlib-devel

yum install zlib-devel

答案 1 :(得分:6)

sudo apt-get install zlib1g-dev

for debian stretch