惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
J
Java Code Geeks
有赞技术团队
有赞技术团队
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The GitHub Blog
The GitHub Blog
T
The Blog of Author Tim Ferriss
Apple Machine Learning Research
Apple Machine Learning Research
量子位
D
Docker
V
Visual Studio Blog
博客园 - 司徒正美
Martin Fowler
Martin Fowler
人人都是产品经理
人人都是产品经理
WordPress大学
WordPress大学
U
Unit 42
M
MIT News - Artificial intelligence
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
G
Google Developers Blog
Engineering at Meta
Engineering at Meta
V
V2EX
大猫的无限游戏
大猫的无限游戏
雷峰网
雷峰网
Vercel News
Vercel News
C
Check Point Blog

Protoc on 轻风云

暂无文章

linux安装或升级protoc
2023-05-20 · via Protoc on 轻风云

由于协作管理protoc版本不一致导致每次生成的文件都会冲突,直接用同一版本

获取源码包

Git地址:https://github.com/protocolbuffers/protobuf/releases

指定版本:https://github.com/protocolbuffers/protobuf/releases/tag/v3.21.12

此处以3.21.12版本为例。

安装或升级protoc

可以先阅读,各模块目录下的README.txt文件,了解安装和使用方法。

我们必须先安装或升级ptotoc编译器,才能进一步编译获得,完整的python或java模块。

1
2
3
4
5
6
7
8
unzip protobuf-3.21.12.zip
cd protobuf-3.21.12
./autogen.sh
./configure
make
make check
make install
protoc --version