【发布时间】:2014-01-22 09:12:32
【问题描述】:
以下是我在执行sudo pip install imposm 时遇到的错误
#include "tcutil.h"
^
1 error generated.
error: command 'gcc' failed with exit status 1
我相信我已经在我的 Mac (OSX 10.8.5) 上的 /usr/bin/gcc 下安装了 gcc(版本:4.2.1)。我不知道还需要做什么。其他详情。
gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix
编辑:我的 Mac 上已经有列出的要求(C/C++ 编译器、Python 库和 Google Protobuf)。这就是这个错误让我感到困惑的原因。
【问题讨论】: