Linux-LAMP安装扩展模块memcache
cd /usr/local/src/
wget http://www.apelearn.com/bbs/data/attachment/forum/memcache-2.2.3.tgz
tar -zxvf memcache-2.2.3.tgz
/usr/local/php/bin/phpize //Cannot find autoconf. Please check your autoconf installation and the
yum install autoconf -y
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make //输出报错信息
vim 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))
make && make install
vim /usr/local/php/etc/php.ini
extension=memcache.so
/usr/local/php/bin/php -m | grep memcache
memcache
原文地址:http://blog.51cto.com/13480443/2084816
时间: 2024-10-22 01:35:38