Configure: error: ZLIB is required for memcache support.

When trying to configure memcache with php on the xmapp server, the following steps display an error.

# / 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

Show errors:

hecking for ZLIB location ... no zlib location check ... configure: error: memcache support requires ZLIB . use --with-zlib-dir = specify the prefix in which ZLIB and the library are included

+4
source share
2 answers

Make sure you have zlib-devel installed

yum install zlib-devel

+9
source
sudo apt-get install zlib1g-dev

for stretching debian

+1
source

Source: https://habr.com/ru/post/1599244/


All Articles