13

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

Lakshmikandan
  • 4,301
  • 3
  • 28
  • 37

2 Answers2

17
sudo apt-get install zlib1g-dev

for debian stretch

Kubrt
  • 191
  • 1
  • 3
10

Make sure you have zlib-devel installed

yum install zlib-devel

Deeh
  • 670
  • 5
  • 18