王筝的博客
ruby学习

http://libmemcached.org/libMemcached.html

报错:

Exception Value:
unknown behavior names: remove_failed
Exception Location: /usr/local/lib/python2.7/site-packages/pylibmc/client.py in set_behaviors, line 171

重装过程:

查看当前ubuntu版本
cat /etc/issue

查看安装的 libmemcached-dev版本
sudo apt-cache show libmemcached-dev

sudo apt-get remove libmemcached-dev 删除老版本

wget https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz
tar xvf libmemcached-1.0.18.tar.gz
cd libmemcached-1.0.18/
./configure
make
sudo make install

sudo pip uninstall pylibmc
sudo pip install pylibmc
sudo ln -s /usr/local/lib/libmemcached.so /usr/lib
(Exception Value:

libmemcached.so.11: cannot open shared object file: No such file or directory

)
sudo ln -s /usr/local/lib/libmemcached.so.11 /usr/lib

查看当前安装的全局应用
pip freeze

Django==1.5.5
MySQL-python==1.2.3
PIL==1.1.7
Thrift==0.7.0
hiredis==0.1.0
kazoo==2.0b1
mongoengine==0.6.20
pycrypto==2.6
pycurl==7.19.0
pylibmc==1.3.99-dev
pymongo==2.7.1
python-memcached==1.53
redis==2.9.1
simplejson==2.3.2
tornado==2.1.1
uWSGI==2.0.6
wsgiref==0.1.2
xlrd==0.9.3
xlutils==1.7.1
xlwt==0.7.5