繁体   English   中英

在Mac上安装imposm(Python软件包)

[英]Installing imposm (a Python package) on Mac

以下是我执行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)。 这就是错误使我感到困惑的原因。

您需要安装imposm用于缓存的tokyo-cabinet

如果您使用自制软件 ,那就很简单: brew install tokyo-cabinet

该模块的文档指出以下内容:

PBF解析器被编写为C扩展,您需要具有C / C ++编译器,Python库和Google Protobuf。

至少,如果这是该模块的适当文档( http://imposm.org/docs/imposm.parser/latest/install.html#installation

我无法真正研究如何在Mac上安装这些组件,但是如果您没有满足这些要求,那可能就是它无法正常工作的原因。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM