Protobuf源码下载:
1、切换到protobuf-V3.0 根目录,运行. autogen.sh前,我们需要先安装autoconf automake libtool
2、autoconf 安装
curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz
tar -xzf autoconf-2.69.tar.gz
cd autoconf-2.69
./configure && make && sudo make install
3、automake 安装
curl -OL http://ftpmirror.gnu.org/automake/automake-1.14.tar.gz
tar -xzf automake-1.14.tar.gz
cd automake-1.14
./configure && make && sudo make install
4、libtool安装
curl -OL http://ftpmirror.gnu.org/libtool/libtool-2.4.2.tar.gz
tar -xzf libtool-2.4.2.tar.gz
cd libtool-2.4.2
./configure && make && sudo make install
5、protoc编译安装
./configure
make
make check
sudo make install
6、编译.proto
proto文件存放目录$SRC_DIR
protoc -I