Protobuf问题强制分析器在OS X El Capitan上

2024-04-20 11:55:06 发布

您现在位置:Python中文网/ 问答频道 /正文

我一直试图通过pip在我的MBPro(OSX El Capitan)上安装imposm.parser。我得到以下错误

In file included from imposm/parser/pbf/osm.cc:6:
    imposm/parser/pbf/osm.pb.h:9:10: fatal error: 'google/protobuf/stubs/common.h' file not found
    #include <google/protobuf/stubs/common.h>
         ^
    1 error generated.
    error: command '/usr/bin/clang' failed with exit status 1

我已经用Macports安装了protobuf和py2 protobuf。我还从源代码处安装了Google的protocolbuffers 2.6.1,但它没有解决问题。注意文件common.h实际上在google/protobuf/stubs文件夹中。在


Tags: pipparserosmgoogleerrorcommonelstubs