• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Spillage
博客园    首页    新随笔    联系   管理    订阅  订阅
ProtoBuf3.3 安装记录

翻了很多教程,下载了 PB 的源码在自己的 mac 上编译及安装,记录下新的

1. 首先是下载源码了 https://github.com/google/protobuf/releases 

虽然是 github,建议开代理,下载速度快一些。

2. tar -zxvf 解压源码后,需要编译, 在新版的 PB 源码中,是不包含 .configure 文件的,需要生成,此时先执行 ./autogen.sh 。

脚本说明如下:

# Run this script to generate the configure script and other files that will
# be included in the distribution. These files are not checked in because they
# are automatically generated.

3. 此时生成了 .configure 文件,可以开始编译了

./configure --prefix=/Users/xielu/IdeaProjects/PB/

make && make install

Done
由于本人是用 golang 开发,还需要配置相关插件~ 此时待续

 

posted on 2017-07-12 10:56  Spillage  阅读(3979)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3