pylibmc安装过程就像个递归调用,要安装pylibmc需要先安装libmemcached,安装libmemcached又需要先安装memcached,安装memcached又要先安装libevent。以下是安装过程
1。安装libevent
./configure && make && make install
默认安装的需要做个软连:/usr/lib/libevent-1.3.so.1 -> /usr/local/lib/libevent-1.3.so.1。1.3是版本号
2。安装memcached
./configure && make && make install
3。安装libmemcached
./configure 需要指定参数,参照http://www.hdwong.com/article/libmemcached-compile-error.html
./configure --disable-64bit CFLAGS="-O3 -march=i686"
make && make install
默认安装的需要做个软连:ln -s /usr/local/lib/libmemcached.so.5 /usr/lib/libmemcached.so.5
4。安装pylibmc
./configure && make && make install