Ubuntu安装protobuf
家电维修 2023-07-16 19:17www.caominkang.com家电维修技术
Ubuntu安装protobuf 第一步下载安装包
官方下载地址:https://github./protocolbuffers/protobuf/releases
1、确定自己当前linux版本(当前版本为x86_64)
uname -a Linux localhost.localdomain 3.10.0-1127.el7.x86_64 #1 SMP Tue Mar 31 23:36:51 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
2、选择相应的版本下载并解压到自己想要的目录,我创建了一个protoc目录解压到这里面
get https://github./protocolbuffers/protobuf/releases/tag/v21.5/protoc-21.5.0-linux-x86_64.zip unzip protoc-21.5.0-linux-x86_64.zip
3、查看官方给出的信息,不过我并么有复制protoc/include/google文件到/usr/local/include
解压protoc压缩包后,可以看到 readme.txt文件
Protocol Buffers - Google's data interchange format Copyright 2008 Google Inc. https://developers.google./protocol-buffers/ This package contains a prepiled binary version of the protocol buffer piler (protoc). This binary is intended for users ho ant to use Protocol Buffers in languages other than C++ but do not ant to pile protoc themselves. To install, simply place this binary somehere in your PATH. If you intend to use the included ell knon types then don't fet to copy the contents of the 'include' directory somehere as ell, for example into '/usr/local/include/'. Please refer to our official github site for more installation instructions: https://github./protocolbuffers/protobuf
大致意思是Protocol Buffers - Google 的数据交换格式版权所有 2008 谷歌公司。
https://developers.google./protocol-buffers/
此包包含协议缓冲区的预编译二进制版本编译器(协议)。此二进制文件适用于想要使用协议的用户
C++ 以外的其他语言的缓冲区,但不想编译 protoc,他们自己要安装,只需将此二进制文件放在 PATH 中的某个位置。
如果您打算使用包含的众所周知的类型,请不要忘记将“include”目录的内容也复制到某处,例如
进入’/usr/local/include/'。
更多安装说明请参考我们的官方github站点https://github./protocolbuffers/protobuf
第二步增加Path路径export PATH=$PATH:/usr/local/bin/protoc/bin第三步检查是否成功
protoc --version libprotoc 3.21.5
家电修理
- 织葫芦岛县热水器维修;湖州织里热水器维修
- 扬州宁德热水器维修电话(宁德热水器维修指南
- 诸城热水器故障码F3-诸城热水器故障码E4
- 宜春市区常德顿(BESIDON)壁挂炉服务24小时热线-厂
- 笋岗维修燃气灶(维修燃气灶的电话号码)
- 佳木斯瑞特太阳能热水器维修(维护保养的具体
- 昆明中央空调维修客服在线报修中心
- 郑州惠济区热水器维修(专业维修服务解决您的
- 徐州阳春燃气灶厂家服务热线
- 湘西热水器故障码E3-热水器代码E3是什么意思
- 邢台商用热水器维修电话
- 康泉煤气灶售后维修-全国统一网点客户服务中心
- 街道热水器维修流程表(城区热水器维修实惠)
- 铜川中央空调全国服务电话网点-铜川中央空调官
- 深圳营口热水器维修(解决热水器故障的方法)
- 如何计算电线平方数。电工知识