Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

configure: error: memcache support requires ZLIB.

When try to configuring memcache with php in xmapp server by following steps shows 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 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

like image 885
Lakshmikandan Avatar asked Jul 23 '15 08:07

Lakshmikandan


2 Answers

sudo apt-get install zlib1g-dev

for debian stretch

like image 173
Kubrt Avatar answered Oct 18 '22 20:10

Kubrt


Make sure you have zlib-devel installed

yum install zlib-devel

like image 45
Deeh Avatar answered Oct 18 '22 18:10

Deeh