美文网首页
安装 protobuf

安装 protobuf

作者: 小黑技术 | 来源:发表于2020-11-06 17:16 被阅读0次

下载protobuf

下载链接:官网https://developers.google.com/protocol-buffers/

gitHub:https://github.com/google/protobuf/releases/tag/v3.6.1

下载完成后

第一步:

在终端执行:tar zxvf protobuf-all-3.6.1.tar.gz 最好放到Library目录下

第二步:

切换到protobuf-all-3.6.1.tar.gz目录下

第三步:

在终端执行:sudo ./configure

第四步:

在终端执行:sudo make

第五步:

在终端执行:sudo make check

第六步:

在终端执行:sudo make install

以后六步执行完成,查看是否安装成功

执行命令:protoc --version

如果出现libprotoc 2.4.1或者libprotoc 2.5.0则说明安装成功

删除:

sudo rm 第一步中protoc_path

注:一般是sudo rm /usr/local/bin/protoc

即可完成卸载

第三步的时候,报C compiler cannot create executables错误

需要安装brew工具

brew安装方法:

终端输入:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)

然后终端执行brew install gcc就可以解决

相关文章

  • mac上安装Protobuf

    为什么要安装protobuf 什么是protobuf 怎么判断有没有安装过protobuf? 安装protobuf...

  • iOS开发环境搭建

    一、安装cocoapods 安装cocoapods 二、安装protobuf 安装protobuf使用方式:pro...

  • gRPC之python

    安装 安装grpc 安装python grpc的protobuf的编译工具 安装protobuf的python依赖...

  • protobuf使用

    protobuf的使用 protobuf .proto文件 idea安装protobuf插件 syntax = ...

  • Ubuntu16.04安装protobuf 2.6.1

    Ubuntu上安装protobuf 和protobuf-c 1、下载安装包protobuf-2.6.1,解压 2、...

  • iOS Protobuf快速集成

    安装Protobuf 使用命令 brew install protobuf 安装前可能需要先安装autoconf和...

  • Protobuf

    Protobuf Mac安装: brew install protobuf protoc —version 查看版...

  • Mac protobuf安装、卸载

    protobuf 安装步骤:1、先下载protobuf文件,链接 protobuf-3.12.0,自己找需要的版本...

  • linux 安装protobuf

    1、根据protobuf GitHub的README.md安装protoBuf (1)安装依赖工具 (2)在pr...

  • Protobuf java使用

    ProtoBuf安装 ProtoBuf源码下载:https://github.com/google/protobu...

网友评论

      本文标题:安装 protobuf

      本文链接:https://www.haomeiwen.com/subject/qlatbktx.html