php - 配置 : error: memcache support requires ZLIB.

标签 php centos xampp memcached

当尝试按照以下步骤在 xmapp 服务器中使用 php 配置 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 for the location of ZLIB... no checking for the location of zlib... configure: error: memcache support requires ZLIB. Use --with-zlib-dir= to specify prefix where ZLIB include and library are located

最佳答案

sudo apt-get install zlib1g-dev

对于 debian stretch

关于php - 配置 : error: memcache support requires ZLIB.,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31581591/

相关文章:

php - 浏览器性能问题

linux - 构建 Guest Additions 时 CentOS "Kernel configuration is invalid"错误

php - PDO BindParam 不适用于 Like 语句

php - 拉维尔 5 : Fatal error: Class 'TestCase' not found in

php - 使用查询生成器的 Laravel 4.2 子查询

nginx - CentOs Nginx 重定向 https ://www to https://

php - 如何在CentOS(php-fpm)中生成coredump

mysql - 从今天起,无法再通过 XAMPP 连接到本地 MY SQL 数据库 (mysqli_real_connect() : (HY000/2002))

mysql - 错误 #1046 - XAMPP 上未选择数据库 SQL 导入

mysql - 将外文字符csv导入xampp mysql