Python – Error when trying to install pylibmc on Mac OSX Lion

easy-installllvm-gccosx-lionpippython

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.

Best Answer

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