Error when install pylibmc using pip

harristrader picture harristrader · Feb 10, 2013 · Viewed 26.6k times · Source

Hello when I attempt to install pylibmc on OSX Lion using pip I get the following error:

./_pylibmcmodule.h:42:10: fatal error: 'libmemcached/memcached.h' file not found

#include <libmemcached/memcached.h>

         ^

1 error generated.

error: command 'clang' failed with exit status 1

Any clues at how to solve this issue?

Answer

Jeremy picture Jeremy · Oct 17, 2013

libmemcached may also be installed using Homebrew.

brew install libmemcached

After that, pip install pylibmc worked for me without needing to specify any additional arguments.