protobuf的安装步骤:
$ 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.
安装过程中可能遇到的问题:
1.
当前的目录不是一个git仓库
解决的办法:
2.
这是因为对*.sh文件的读、写、运行权限不足。
解决的方法:
3.