libevent >> memcached >> libmemcached >> pylibmc
后者依赖于前者
下载:sudo wget https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz -c -O libevent-2.1.8-stable.tar.gz
解压:tar -zxvf libevent-2.1.8-stable.tar.gz
进入目录:cd libevent-2.1.8-stable
指定安装路径:./configure --prefix=/usr/local/libevent
编译安装:1)make && make install(若出现Permission Deny,则使用下面这两条命令)
2)make
sudo make install
下载:sudo wget http://memcached.org/latest
解压:tar -zxvf latest
进入目录:cd +(查看解压出来的memcached的具体版本号)
指定安装路径:./configure --prefix=/usr/local/memcached --with-libevent=/usr/local/libevent
编译安装:1)make && make install(若出现Permission Deny,则使用下面这两条命令)
2)make
sudo make install
wget https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz
tar zxf libmemcached-1.0.18.tar.gz
cd libmemcached-1.0.18
./configure --prefix=/usr/local/libmemcached
make &&make install
LIBMEMCACHED=/usr/local/libmemcached pip install pylibmc