centos安装memcache

一,安装libmemcached

地址:https://launchpad.net/libmemcached/+download

正常安装即可,可以指定prefix,指定后在安装memcached时需要指定libmemcached的安装位置 : --with-libmemcached-dir=

 

二,安装memcached

地址http://pecl.php.net/package-search.php?pkg_name=memcache&bool=AND&submit=Search

正常解压,执行phpize

./configure --with-php-config=

提示:configure: error: no, sasl.h is not available. Run configure with --disable-memcached-sasl to disable this check

centos :

yum install cyrus-sasl-devel

ubuntu:

apt-get install libsasl2-dev

再次./configure --with-php-config=

再次提示: configure: error: no, libmemcached sasl support is not enabled. Run configure with --disable-memcached-sasl to disable this check

解决方法:安装完cyrus-sasl-devel或者libsasl2-dev后重新编译libmemcached然后再次编译memcached即可

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值