Install python-memcached Error
kitelife opened this issue · comments
@youngsterxyf 这是python-libmemcached的依赖系统库的问题,目前这方面文档还不全,你看一下这个的依赖你装了么 https://github.com/douban/python-libmemcached/blob/master/readme
@xtao 我从lanuchpad上下载了libmemcached1.0.2,然后尝试将https://github.com/douban/python-libmemcached/tree/master/patches/1.0的三个补丁打到libmemcached1.0.2源码中,但behavior.patch打补丁失败,我不管这个失败,编译安装libmemcached成功,但执行文档中的“pip install -r requirements.txt”还是出现上图所示的错误。
@youngsterxyf 你说一下你的系统版本,我试试~
@youngsterxyf 我也遇到了这个问题,ubuntu 12.04. 搜到了这个issue lericson/pylibmc#66 应该是libmemcached版本问题,好蛋疼。为毛ubuntu12.04上libmemcached的版本才0.44,更新好慢啊
ubuntu 12.04 上这种包大部分还是自己编译方便……
2014-02-14 11:29 GMT+08:00 Kaifeng Jin notifications@github.com:
@youngsterxyf https://github.com/youngsterxyf 我也遇到了这个问题,ubuntu 12.04.
搜到了这个issue lericson/pylibmc#66https://github.com/lericson/pylibmc/issues/66应该是libmemcached版本问题,好蛋疼。为毛ubuntu12.04上libmemcached的版本才0.44,更新好慢啊—
Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-35052563
.
我下载了libmemcached 1.0.8打了要求的三个补丁编译安装后,成功安装好了requements.txt上的依赖,可是启动时会报错:ImportError: libmemcached.so.10: cannot open shared object file: No such file or directory 。
补充:貌似是libmemcached安装位置不对,/usr/local/lib/libmemcached.so.10 我是安装在这里,应该安装在哪?
试了下,在/usr/lib/ 里加了个ln -s就好了。。。终于启动了
编译时加上 --prefix=/usr 就好了
kingkf commented 9 hours ago
我下载了libmemcached 1.0.8打了要求的三个补丁编译安装后,成功安装好了requements.txt上的依赖,可是启动时会报错:ImportError: libmemcached.so.10: cannot open shared object file: No such file or directory 。
补充:貌似是libmemcached安装位置不对,/usr/local/lib/libmemcached.so.10 我是安装在这里,应该安装在哪?
试了下,在/usr/lib/ 里加了个ln -s就好了。。。终于启动了
python-memcached即将被替换掉. 详见 #67