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

发表评论

电子邮件地址不会被公开。 必填项已用*标注