最近開始使用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