Installing Google Protocol Buffers on mac

前端 未结 14 1699
轮回少年
轮回少年 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:45

    This is not via brew, but the end result is the same.

    1. Download the protobuf-2.4.1 from https://protobuf.googlecode.com/files/protobuf-2.4.1.tar.gz
    2. Extract the tar.gz file.
    3. $cd ~/Downloads/protobuf-2.4.1
    4. $./configure
    5. $make
    6. $make check
    7. $sudo make install
    8. $which protoc
    9. $protoc --version

    Steps 4-7 are from the README.txt file from the protobuf tarball.

提交回复
热议问题