由于mac 上安装了2个php 所以导致memcache 安装扩展时候产生了如下错误
[27-May-2015 16:09:54] NOTICE: PHP message: PHP Warning: PHP Startup: memcache: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
解决办法
重新编译安装 并加上 --with-php-config
/usr/local/php/bin/phpize #写全phpize的路径 ./configure --with-php-config=/usr/local/php/bin/php-config #配置时 要将php-config的路径附上 make && make install