configure:error:memcache支持需要ZLIB.

lak*_*dan 8 php xampp memcached centos

当尝试使用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
Run Code Online (Sandbox Code Playgroud)

显示错误:

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

小智 10

确保安装了zlib-devel

yum install zlib-devel


小智 9

sudo apt-get install zlib1g-dev
Run Code Online (Sandbox Code Playgroud)

对于debian伸展