搭建golang使用rotobuf使用环境

一 安装protobuf:

  1 下载protobuf源码:https://github.com/google/protobuf

2 进入源码目录: ./autogen.sh    

           可能遇到问题:1 该脚本会下载gmock, 若被墙,则需FQ下载并解压为gmock放在该源码目录下

2 脚本会执行autoreconf命令,若未安装此命令则手动安装(ubantu安装:sudo apt-get install autoconf automake libtool )

3 ./configure;make;make check; sudo make install

4 sudo ldconfig  # refresh shared library cache

二 安装gogoprotobuf:

  1 go get -u github.com/golang/protobuf

三 使用gogoprotobuf:

1 protoc --go_out=. myproto.proto

示例地址:https://godoc.org/github.com/golang/protobuf/proto

最新文章

  1. Angular杂谈系列1-如何在Angular2中使用jQuery及其插件
  2. js正则表达式校验正数、负数、和小数:^(\-|\+)?\d+(\.\d+)?$
  3. 从linux0.11中起动部分代码看汇编调用c语言函数
  4. PHP实现实现数字补零格式化
  5. Android之UI编程(一):线性布局
  6. Node.js Express 框架 GET方法
  7. OC 内存泄露 自动释放池
  8. 【C#】ContextMenuStrip 右键菜单颜色设置
  9. 查看CPU是否支持虚拟化
  10. Hibernate 性能优化之二级缓存
  11. 如何关闭android studio开发环境自动保存
  12. s:if 判断 s:property
  13. centosFTP服务搭建及权限配置
  14. MongoDB - Indexes
  15. ApplicationContext(七)Message 源
  16. c++11 随机代码记录
  17. Oracle EBS 获取说明性弹性域全局数据元
  18. ZT linux的mount(挂载)命令详解
  19. 连接oracle服务器超慢--原因分析
  20. cmd命令提示符大全(干货)

热门文章

  1. PL/SQL:使用pragma restrict_references限制包权限
  2. div 水平居中
  3. [D3] 5 .rangeBands
  4. java 使用线程做一个简单的ATM存取款实例.(转)
  5. /bin/bash^M: bad interpreter: 没有那个文件或目录--转载
  6. SharePoint Dialog 使用
  7. PHP能得到你是从什么页面过来的,r…
  8. jquery自调用匿名函数解析
  9. Bootstrap--全局css样式之表单
  10. Http协议、线程、线程池