php报错: PHP Warning: PHP Startup: memcache: Unable to initialize module

在mac上通过brew 安装php的memcache扩展(brew install php56-memcache)后运行

~  php -m
PHP Warning:  PHP Startup: memcache: Unable to initialize module
Module compiled with build ID=API20131226,NTS
PHP    compiled with build ID=API20131226,NTS,debug
These options need to match
 in Unknown on line 0

Warning: PHP Startup: memcache: Unable to initialize module
Module compiled with build ID=API20131226,NTS
PHP    compiled with build ID=API20131226,NTS,debug
These options need to match
 in Unknown on line 0

报了这样的警告信息

 

解决:

brew remove php56-memcache

brew install php56-memcahe --build-from-source

posted @ 2015-12-08 17:53  joy696163  阅读(2768)  评论(0编辑  收藏  举报