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 輸出版本號成功