Installing pylibmc on Ubuntu
Asked Answered
S

3

40

When running

pip install pylibmc

on Ubuntu, I get the following error:

_pylibmcmodule.h:42:36: fatal error: libmemcached/memcached.h: No such file or directory
Snowbound answered 5/12, 2013 at 0:0 Comment(0)
S
88
sudo apt-get install libmemcached-dev zlib1g-dev
Snowbound answered 5/12, 2013 at 0:0 Comment(1)
The package for CentOS 5 is libmemcached-devel.Unfriendly
D
9

Zags answer didn't do the trick for me on Ubuntu 13.10. libmemcached-dev had already been installed. I had to also do:

sudo apt-get install zlib1g-dev

Maybe that will help someone else.

Dira answered 2/4, 2014 at 13:47 Comment(0)
T
4

Install libmemcached using below command

sudo apt-get install libmemcached-dev zlib1g-dev

Then set the environment variable and install

LIBMEMCACHED=/opt/local pip install pylibmc
Terri answered 25/8, 2017 at 16:4 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.