Mac MAMP下安装memcache报错

ccav5 发布于 2016/05/17 09:00
阅读 608
收藏 0

目前版本是php5.5.10 ,这个问题个人短短续续已经花费1个礼拜,实在无法解决,只好发帖求助

提示需要zlib 但是加上--with-zlib-dir=xxx  还是提示以上的图示;

 图1-1


图2-1

我才用的是pecl 方式安装memcache, 总结:现在的问题是 pecl 方式编译memcache.so 的时候没有成功;

错误提示“

checking for the location of zlib... configure: error: memcache support requires ZLIB. Use --with-zlib-dir=<DIR> to specify prefix where ZLIB include and library are located

ERROR: `/private/tmp/pear/temp/memcache/configure --enable-memcache-session=y' failed

最新尝试:


weitaotaodeMacBook-Pro:bin weitaotao$ pecl i memcache --with-zlib-dir=/usr/local/Cellar/zlib/1.2.8/include/zlib.h 

Attempting to discover channel "--with-zlib-dir=/usr/local/Cellar/zlib/1.2.8/include"...

Starting to download memcache-2.2.7.tgz (36,459 bytes)

WARNING: php_bin /Applications/MAMP/bin/php/php5.5.10/bin/php appears to have a suffix /php5.5.10/bin/php, but config variable php_suffix does not match


Enable memcache session handler support? [yes] : 

填完Y后:继续跑出一下提示:

checking for PHP extension directory... /Applications/MAMP/bin/php/php5.5.10/lib/php/extensions/no-debug-non-zts-20121212

checking for PHP installed headers prefix... /Applications/MAMP/bin/php/php5.5.10/include/php

checking if debug is enabled... no

checking if zts is enabled... no

checking for re2c... no

configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.

checking for gawk... no

checking for nawk... no

checking for awk... awk

checking if awk is broken... no

checking whether to enable memcache support... yes, shared

checking whether to enable memcache session handler support... y

checking for the location of ZLIB... no

checking for the location of zlib... configure: error: memcache support requires ZLIB. Use --with-zlib-dir=<DIR> to specify prefix where ZLIB include and library are located

ERROR: `/private/tmp/pear/temp/memcache/configure --enable-memcache-session=y' failed





加载中
返回顶部
顶部