1 protoc --version
Install requirements:
1 sudo apt-get install autoconf automake libtool curl make g++ unzip
First,you should download protobuf files.
Click here:https://github.com/protocolbuffers/protobuf/releases
Sencond,you should download googletest files,you are going to use(important)
Click here:https://github.com/google/googletest/releases
1 tar -zxvf protobuf-3.6.0.1.tar.gz 2 3 tar -zxvf googletest-release-1.8.0.tar.gz 4 5 cd googletest-release-1.8.0 6 7 cp -r googletest ~/protobuf-3.6.0.1/third_party/
===================
Install steps:
1 cd protobuf-3.6.0.1 2 3 git init 4 5 git submodule update --init --recursive 6 7 ./autogen.sh 8 9 ./configure 10 11 make -j8 12 13 sudo make install 14 15 sudo ldconfig 16 17 #Check ptoroc version 18 protoc --version