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

推荐订阅源

Google DeepMind News
Google DeepMind News
L
LangChain Blog
H
Help Net Security
博客园_首页
T
Tailwind CSS Blog
Microsoft Security Blog
Microsoft Security Blog
T
The Blog of Author Tim Ferriss
雷峰网
雷峰网
Recent Announcements
Recent Announcements
D
DataBreaches.Net
U
Unit 42
Vercel News
Vercel News
I
InfoQ
Martin Fowler
Martin Fowler
Microsoft Azure Blog
Microsoft Azure Blog
Apple Machine Learning Research
Apple Machine Learning Research
S
SegmentFault 最新的问题
Jina AI
Jina AI
博客园 - 叶小钗
博客园 - 【当耐特】
罗磊的独立博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
月光博客
月光博客
Last Week in AI
Last Week in AI

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