protobuf安装:
0、安装依赖:
$ sudo apt-get install autoconf automake libtool curl make g++ unzip
1、
git clone https://github.com/protocolbuffers/protobuf.git
cd protobuf
git submodule update --init --recursive
./autogen.sh
2、
./configure
make
make check
sudo make install
sudo ldconfig # refresh shared library cache.