参考:https://github.com/protocolbuffers/protobuf/blob/master/src/README.md
编译环境配置:
sudo yum install autoconf automake libtool curl make g++ unzip
从 https://github.com/protocolbuffers/protobuf/releases/latest 下载源码包
编译安装命令:
$ ./configure --prefix="安装目录"
$ make
$ make check
$ sudo make install
$ sudo ldconfig # refresh shared library cache.