gRpc 发布了1.0版,想来试试看,发现新电脑没有装protobuf,之前装的完了记过程,又重新网上搜了一下做个记录,我的系统是ubuntu15.10
获取 Protobuf 编译器 protoc
我是从github上直接下载的源码编译的,下载地址https://github.com/google/protobuf/releases/tag/v3.0.2,下载后按照文档上的说明操作:
1.检查安装需要用到的编译工具
$ sudo apt-get install autoconf automake libtool curl make g++ unzip
2.生成需要的配置脚本
$ ./autogen.sh
3.编译安装
$ ./configure
$ make
$ make check
$ sudo make install
$