[工具] Mac 安装 protobuf

2018-10-11  本文已影响17人  程序员驿站

最近开始使用google的序列化(protobuf),需要安装protobuf客户端将描述文件编译成java类;
下面是在mac的电脑上安装protobuf步骤,如下

下载源码

git clone https://github.com/google/protobuf

git checkout 版本号

安装 automake和 Libtool

brew install automake

brew install libtool

运行自动生成脚本

./autogen.sh

安装protobuf

./configure
make check
make
sudo make install 

查看安装版本

protoc –version
上一篇 下一篇

猜你喜欢

热点阅读