windows下略。
linux下:
1.官网下载memcached 和libevent
2.安装libevent
# tar zxvf libevent
# cd libevent
# ./configure –prefix=/usr (这一步最好指定在usr目录下,linux系统会默认去usr/下找lib,如果在其他地方安装则需手动在/usr添加软链接)
# make
# make install
测试libevent是否安装成功:
# ls -al /usr/lib | grep libevent
3.安装memcached,同时需要安装中指定libevent的安装位置:
# cd /tmp
# tar zxvf memcached-1.2.0.tar.gz
# cd memcached-1.2.0
# ./configure –with-libevent=/usr
# make
# make install