ubuntu14.0 下安装pylibmc

2017-06-26  本文已影响0人  晨暮云海

1.libevent的安装:

$sudo apt-get install libevent-dev

2.memcached的安装:

$sudo apt-get install memcached
$vim /etc/memcached.conf  (改里面的ip为0.0.0.0)

3.libmemcached的安装:
下载安装包:https://launchpad.net/libmemcached/+download

tar xzf libmemcached-1.0.7.tar
cd libmemcached-1.0.7
./configure --prefix=/解压文件所在路径/libmemcached-1.0.7
make && sudo make install 
ln -s /usr/local/lib/libmemcached.so.10  /usr/lib/libmemcached.so.10 

4.pylibmc的安装:

$pip install pylibmc

要是以上安装有问题,安装这个就行了

sudo apt-get install libmemcached-dev zlib1g-dev

python3.6.要安装:sudo apt-get install python3.6-dev

上一篇下一篇

猜你喜欢

热点阅读