由于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
在Mac OS上安装memcache扩展时,由于存在两个PHP版本导致出现'PHP Startup: memcache: Unable to initialize module'警告。错误信息显示模块编译的API与PHP编译的API不匹配。解决此问题的方法是重新编译安装memcache,并在编译过程中添加'--with-php-config'选项以确保与PHP配置匹配。
894

被折叠的 条评论
为什么被折叠?



