Domanda

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
È stato utile?

Soluzione

sudo apt-get install libmemcached-dev zlib1g-dev

Altri suggerimenti

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.

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
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top