how to install libmemcached for django framework in ubuntu 10.04
Asked Answered
F

2

5

I installed libmemcached 0,37 and ln -s /usr/local/lib/libmemcached.so.2 /usr/lib/libmemcached.so.2

but when I run manage.py it still return
import _pylibmc RuntimeError: pylibmc requires >= libmemcached 0.32, was compiled with 0.31

I try to install newer libmemcached,but they donot have the file libmemcached.so.2

Frequentative answered 15/1, 2013 at 6:48 Comment(0)
D
15

You just need to install these dependencies before installing pylibmc

sudo apt-get install -y libmemcached-dev zlib1g-dev libssl-dev python-dev build-essential

pip install pylibmc

Here is gist on Github that helps you.

Dishonor answered 15/1, 2013 at 7:11 Comment(0)
J
0

You should install python-memcached

You can install like this,

sudo pip install python-memcached 

OR

sudo apt-get install python-memcache 

python2.7-dev if not installed, you have to install like this,

sudo apt-get install python2.7-dev
Jillane answered 15/1, 2013 at 6:58 Comment(1)
Django memcache supports two binaries python-memcached` and pylibmc. Opt is having issue in pylibmc ??Dishonor

© 2022 - 2024 — McMap. All rights reserved.