标签:
#cd libmemcached-1.0.16 #./configure -prefix=/usr/local/libmemcached -with-memcached=/usr/local/memcached/bin/memcached #make #make install
注:
如果报”./libmemcached-1.0/memcached.h:46:27: error: tr1/cinttypes: No such file or directory”错误,则需要升级gcc版本.
#cd memcached-2.1.0 找到phpize和php-config的路径,我的分别是/usr/local/bin/phpize和/usr/bin/php-config. #/usr/local/bin/phpize #./configure --with-php-config=/usr/bin/php-config --with-libmemcached-dir=/usr/local/libmemcached #make #make install 安装成功后会生成memcached.so,把路径加到php.ini的extension=xxx里.
CentOS-6.4 安装 PHP Memcached 扩展
标签:
原文地址:http://www.cnblogs.com/phpdragon/p/4507833.html