Update: the bug has been fixed by Canonical so this repo is no longer of any use.
This is a fork of the
libmemcached
library on Launchpad which
seem to be no longer maintained. The original README is in
README.old.
This repo mainly exists to fix a security bug (second bug report) in the authentication code. This bug causes the error
MemcachedError: error 40 from memcached_get: FAILED TO SEND AUTHENTICATION TO SERVER, no mechanism available -> libmemcached/sasl.cc:238
which has been reported here and here.
- The branch
dev_1.0
mirrorslp:libmemcached/1.0
. - The branch
dev_1.2
mirrorslp:libmemcached
. - The
master
branch is a fork of the1.0.18
tag (last stable version) and contains the bug fix.
1.0.19 (master)
/
---1.0.18---dev_1
\
------------------dev_1.2
To install libmemcached
run:
$ git clone https://github.com/memcachier/libmemcached.git
$ cd libmemcached
$ sudo apt-get install libtool automake flex bison python-sphinx libsasl2-dev
$ ./bootstrap.sh autoreconf
$ ./configure --enable-sasl
If you get
configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."
make sure to have the shtool
in the libmemcached
directory (don't ask me why):
$ sudo apt-get install shtool
$ ln -s /usr/bin/shtool shtool
and continue:
$ ./configure --enable-sasl
$ make
$ sudo make install
This will install the library in /usr/local/lib
.
To install pylibmc
using the fixed libmemcached
run
$ sudo apt-get install python3-dev libz-dev
$ pip install pylibmc --install-option="--with-libmemcached=/usr/local/lib"