ubuntu 编译protobuf

编译protobuf

1. https://github.com/google/protobuf/releases
2. https://github.com/google/protobuf/blob/master/src/README.md
3. 下载protobuf-3.5.1.tar.gz
4.解压进入目录

tar -zxvf protobuf-3.5.1.tar.gz
cd protobuf-3.5.1/
./autogen.sh
./configure
make
make check
sudo make install

5.检查安装成功

protoc –version


6. error:

./autogen.sh: 48: autoreconf: not found
是在不同版本的 tslib 下执行 autogen.sh 产生。它们产生的原因一样,是因为没有安装automake 工具,执行安装就行
sudo apt-get install autoconf automake libtool

猜你喜欢

转载自blog.csdn.net/confuciust/article/details/80922363