memcached安装踩坑
Linux系统安装memcached,首先要先安装libevent库
#查看系统是否已经安装libevent
rpm -qa|grep libevent
yum install libevent
官网提供的安装步骤
wget http://memcached.org/latest tar -zxvf memcached-1.x.x.tar.gz cd memcached-1.x.x ./configure && make && make test && sudo make install
注意这个
wget http://memcached.org/latest
下载下来是个latest文件。。。。不是memcached-1.x.x.tar.gz。。。需要改成
wget http://www.memcached.org/files/memcached-1.5.22.tar.gz
然后编译有可能不过报这个:
checking for libevent directory… configure: error: libevent is required. You can get it from http://www.monkey.org/~provos/libevent/ If it’s already installed, specify its path using –with-libevent=/dir/
因为libevent 这个包是系统默认安装的,没有安装相应的开发所用的头文件。
所以,还要使用如下命令来安装:
yum install libevent-devel
然后。。。运行make test时报错Can‘t locate Test/More.pm in ...
需要安装make test依赖的工具
yum install yum install perl-Test*