Installing Google Protocol Buffers on mac

前端 未结 14 1715
轮回少年
轮回少年 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 10:52

    There is another official way by Google, as mentioned by another user.

    Read it fully before trying.

    Here are the steps:

    Open Terminal and type the following

    1. PROTOC_ZIP=protoc-3.7.1-osx-x86_64.zip
    2. curl -OL https://github.com/google/protobuf/releases/download/v3.7.1/$PROTOC_ZIP
    3. sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
    4. rm -f $PROTOC_ZIP

    Worked for me.

    P.S.
    This is for version 3.7.1 in osx only. If you want to install some other version/platform, visit the releases link and check out the details of the latest version, and use those information. Reference

提交回复
热议问题