Installing Google Protocol Buffers on mac

前端 未结 14 1649
轮回少年
轮回少年 2020-12-12 10:24

I would like to install the older version of Google Protocol Buffers (protobuf-2.4.1) on mac using Terminal command line. I tried with brew install protobuf, bu

相关标签:
14条回答
  • 2020-12-12 11:06

    I used macports

    sudo port install protobuf-cpp
    
    0 讨论(0)
  • 2020-12-12 11:06

    FWIW., the latest version of brew is at protobuf 3.0, and doesn't include any formulae for the older versions. This is somewhat "inconvenient".

    While protobuf may be compatible at the wire level, it is absolutely not compatible at the level of generated java classes: you can't use .class files generated with protoc 2.4 with the protobuf-2.5 JAR, etc. etc. This is why updating protobuf versions is such a sensitive topic in the Hadoop stack: it invariably requires coordination across different projects, and is traumatic enough that nobody likes to do it.

    0 讨论(0)
提交回复
热议问题