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啊啥的了。
Protobuf安装指南
本文提供了一个详细的步骤来安装Protobuf,包括使用git下载源码,安装必要的工具如autoconf、automake等,以及如何配置、编译和安装Protobuf。完成安装后,可以进一步安装如grpc和go-micro等依赖于Protobuf的项目。
1323

被折叠的 条评论
为什么被折叠?



