下面是我执行sudo pip install imposm时得到的错误
#include "tcutil.h"
^
1 error generated.
error: command 'gcc' failed with exit status 1我相信我已经在我的Mac (osx10.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)。这就是为什么这个错误让我感到困惑。
发布于 2014-03-10 04:05:21
您需要安装tokyo-cabinet,imposm将其用于缓存。
如果你使用homebrew,它很简单:brew install tokyo-cabinet
发布于 2014-01-22 18:00:03
该模块的文档说明如下:
PBF解析器
是用C扩展编写的,您需要有C/C++编译器、Python库和Google Protobuf。
至少,如果这是该模块的适当文档(http://imposm.org/docs/imposm.parser/latest/install.html#installation)
我真的不能研究如何在mac上安装这些组件,但如果你没有满足这些要求,这可能是它不能工作的原因。
https://stackoverflow.com/questions/21278565
复制相似问题