- 下载memcache源码包:http://pecl.php.net/get/memcache-2.2.3.tgz
tar -zxvf memcache-2.2.3.tgz
# 直接执行此命令 /usr/local/php/bin/phpize 注:没有生成configure 就安装autoconfig。 yum install -y autoconfig
./configure --with-php-config=/usr/local/php/bin/php-config
4、编译、编译安装
make && make install


解决方案: vi memcache.c 将所有的:zend_list_insert(pool, le_memcache_pool); 改为:zend_list_insert(pool, le_memcache_pool TSRMLS_CC); 将所有的:zend_list_insert(mmc, le_pmemcache); 改为:zend_list_insert(mmc, le_pmemcache TSRMLS_CC); 讲所有的:if (!zend_is_callable(failure_callback, 0, NULL)) 改为:if (!zend_is_callable(failure_callback, 0, NULL, NULL))


查看.os文件目录
ls /usr/local/php/lib/php/extensions/no-debug-zts-20090626/
5、php内添加memcache模块
vim /usr/local/php/etc/php.ini extension=memecache.so
/usr/local/php/bin/php -m | grep memcache