protobuf 误装了其余版本以后,我以前的3.6.1,就找不到了,如今按照源码安装的方式,进行安装,成功git
1.卸载github
sudo apt-get remove libprotobuf-devcurl
which protocpost
而后删除路径便可url
2.安装blog
sudo apt-get install autoconf automake libtool curl make g++ unzipip
git clone -b v3.6.1 https://github.com/protocolbuffers/protobuf.gitrem
cd protobufget
git submodule update --init --recursive源码
./autogen.sh
./configure
make
make check
sudo make install
sudo ldconfig
protoc --version 输出版本号成功