我想在我的Mac上安裝memcached
。我已經下載並安裝它。我也將它添加到php.ini中。但仍然memcached
不加載。我意識到問題在於和phpize
的API版本不匹配。phpize和php api版本不匹配
這是我所得到的,當我做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
我會很感激,如果有人能幫助我解決這個問題。乾杯。
你是如何安裝PHP和memcached的?你在使用包管理器嗎? –
我手動編譯php。但用brew來安裝memcached – Subash