安装步骤
sudo apt-get install autoconf automake libtool curl make g++ unzip
git clone https://github.com/protocolbuffers/protobuf.git
cd protobuf
git submodule update --init --recursive
./autogen.sh
./configure
make
//可不检查,没影响
make check
sudo make install
sudo ldconfig # refresh shared library cache.
测试
protoc --version //版本号,输出即可