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

  

原文地址:https://www.cnblogs.com/zrp2013/p/5649668.html