ubuntu16.04安装proto buffer
1. 通过git下载源码,其它的途径不太好使【原因呢,你懂的】
git clone https://github.com/protocolbuffers/protobuf
2. 需要安装一些工具
sudo apt install autoconf automake libtool curl make g++ unzip
3. cd protobuf/
4 ./autogen.sh
5. ./configure
6. make
7. sudo make install
8. sudo ldconfig
9. protoc --version
OK了!后面就可以安装grpc啊,go-micro啊啥的了。