emmmmmmm..... Ubuntu16.04自带protobuf
protoc --version 查看版本
whereis protoc 查看安装位置
which protoc 如果有多个protobuf,查看默认使用的protobuf
方法一:
1、下载google protocol buffers,下载地址:http://code.google.com/p/protobuf/,解压到了/usr/local下
2、./configue,不出意外如下:
cd protobuf-master
./configue
but:
看网上所有的教程都是直接进入protobuf主目录,并且./configue,但是我运行时一直提示没有./configue文件
安装aotomake,先用automaker生成configure文件:
apt-get install automake
./autogen.sh
./configure
然后坑爹的是,我在运行autogen.sh时,报了下面的错:
+ mkdir -p third_party/googletest/m4
+ autoreconf -f -i -Wall,no-obsolete
configure.a