Sub*_*ash 5 php memcached php-extension
我想memcached在我的Mac 上安装.我已经下载并安装了它.我也将它添加到php.ini中.但仍然memcached没有加载.我意识到问题是与API版本不匹配php和phpize.
这就是我做的事情 php -v
PHP Warning: PHP Startup: memcached: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20100525
These options need to match
in Unknown on line 0
PHP 5.4.8 (cli) (built: Oct 30 2012 19:29:58)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
Run Code Online (Sandbox Code Playgroud)
如果有人帮我解决这个问题我真的很感激.干杯.
是的,您应该通过以下步骤手动构建扩展
phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make
make install
Run Code Online (Sandbox Code Playgroud)
确保你运行phpize并php-config指向你正确的php verison.
不在/usr/bin/phpize和/usr/include/php
确保使用 --with-php-config