Take the 2-minute tour ×

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.

share|improve this question
add comment

2 Answers

up vote 13 down vote accepted

First a question: is libmemcached installed? If not, install it and retry. It probably is but just in case....

If pylibmc still doesn't install the problem is probably that libmemcached is not installed in a directory where gcc can discover it (this was a macports symptom in my case), in which case you can store the location in the environment when running pip from the command line:

LIBMEMCACHED=/opt/local pip install pylibmc

share|improve this answer
With that I could install it but I could not import it. I downloaded it from github and installed with sudo python setup.py install --with-libmemcached=/opt/local/ That fixed the issue –  hithwen May 31 '13 at 8:53
Interesting that it wouldn't import... –  philofinfinitejest May 31 '13 at 20:56
add comment

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
share|improve this answer
I had libmemcached installed, but for some reason it was unlinked. Uninstalling and reinstalling libmemcached fixed the inability to install pylibmc. –  margusholland Feb 25 '13 at 20:57
add comment

Your Answer


