mac 安装memcache扩展问题

执行php -i 报错:

Warning: PHP Startup: memcached: 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

解决办法:

1.brew search memcached
2.重装加上 —build-from-source
brew reinstall -v homebrew/php/php56-memcached --build-from-source

  

posted @ 2016-07-07 12:35  不负韶华668  阅读(688)  评论(0编辑  收藏  举报