[英]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.