尝试在 Mac OSX Lion 上安装 pylibmc 时出错
我尝试过 pip 和 easy_install,但不断收到以下错误: 错误:命令“/usr/bin/llvm-gcc”失败,退出状态为 1
我正在运行 OSX Lion,安装在 virtualenv 内运行,使用 Python 2.7.2。
提前致谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
可能是没有安装libmemcached造成的。你应该安装 libevent &内存缓存和在尝试安装 pylibmc 之前,请先安装 libmemcached。如果您使用的是自制程序,则可以使用它来完成libmemcached依赖项的安装过程。
像这样:
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:
首先一个问题:libmemcached安装了吗?如果没有,请安装并重试。可能是,但以防万一......
如果 pylibmc 仍然没有安装,问题可能是 libmemcached 没有安装在 gcc 可以发现它的目录中(在我的情况下这是 macports 症状),在这种情况下你从命令行运行 pip 时可以存储环境中的位置:
LIBMEMCACHED=/opt/local pip install pylibmc
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
我尝试了以上所有选项,但没有运气。
然后我访问该网站并按照说明进行操作(http://sendapatch.se/projects /pylibmc/install.html#requirements)
基本上就是这样做的:
就是这样。
我有一台 Mac,运行 MacOS Mojave、python 3.6
I tried all the above option with no luck.
I then went to this site and followed the instructions (http://sendapatch.se/projects/pylibmc/install.html#requirements)
Basically do this:
and that is it.
I have a Mac with MacOS Mojave, python 3.6
检查是否安装了
libmemcached
。如果找不到,则安装它brew install libmemcached
其余的事情都会正常工作。我在安装 django 测试套件时解决了这个问题。
Check if
libmemcached
is installed. If not found then install it withbrew install libmemcached
and rest of things will work just fine.I resolved this issue while installing django test suite.