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.
是在不同版本的 tslib 下执行 autogen.sh 产生。它们产生的原因一样,是
因为没有安装automake 工具, 用下面的命令安装好就可以了
$sudo apt-get install autoconf
$sudo apt-get install automake
$sudo apt-get install libtool