Error when trying to install pylibmc on Mac OSX Lion

Ash picture Ash · Jan 30, 2012 · Viewed 7.7k times · Source

I've tried pip and easy_install, but I keep getting the following error: error: command '/usr/bin/llvm-gcc' failed with exit status 1

I'm running OSX Lion and the install runs inside a virtualenv, with Python 2.7.2.

Thanks in advance.

Answer

pigsoldier picture pigsoldier · Mar 2, 2012

it may caused by the libmemcached is not installed. You should install libevent & memcache & libmemcached first before you are trying install the pylibmc. If you are using homebrew, you can use it to finish the progress of install the dependency of the libmemcached. like this:

brew install libmemcached