I am trying to install memcached in my mac. I have downloaded and installed it. I added it to php.ini as well. But still memcached doesnt load. I realized that the problem is with the API version mismatch of php and phpize. 
This is what I get when I do 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
I would really appreciate if someone would help me fix this issue. Cheers.
Yes, you should build the extension manually by the following step
phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make
make install
make sure you run phpize and php-config pointing to your correct php verison.
not in the /usr/bin/phpize and /usr/include/php
make sure use --with-php-config
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With