您的位置:首页 > 数据库 > Memcache

mac os 安装memcache 出现 PHP Warning: PHP Startup: memcache: Unable to initialize module 解决办法

2015-05-27 16:59 603 查看
由于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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐