1、安装memcached 1.4.5
wget http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz
安装相关以前有文档,略。
不必启动memcached,因为是客户端。
2、安装libmemcached
wget http://download.tangent.org/libmemcached-0.43.tar.gz
tar zxf libmemcached-0.43.tar.gz
cd libmemcached-0.43
./configure --prefix=/usr/local/libmemcached --with-memcached=/usr/local/memcache/bin/memcached --disable-64bit CFLAGS="-O3 -march=i686"
make
make install
echo "/usr/local/libmemcached/lib" >> /etc/ld.so.conf;ldconfig