ubuntu16.04安装proto buffer

1. 通过git下载源码,其它的途径不太好使【原因呢,你懂的】

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

ubuntu16.04安装proto buffer

2. 需要安装一些工具

sudo apt install autoconf automake libtool curl make g++ unzip

3. cd protobuf/

4 ./autogen.sh

ubuntu16.04安装proto buffer

5. ./configure

ubuntu16.04安装proto buffer

 

6. make

7. sudo make install

8. sudo ldconfig

9. protoc --version

ubuntu16.04安装proto buffer

OK了!后面就可以安装grpc啊,go-micro啊啥的了。