new version
Google protobuf-3.6.1 is now the latest version, adding new features, see the description
download address https://github.com/protocolbuffers/protobuf/releases p>
I downloaded the protobuf-all-3.6.1.tar.gz package
new version does not need to execute autogen.sh script, just./configure line
tar ZVXF protobuf-all-3.6.1.tar.gz
CD protobuf-3.6.1
./configure — prefix=/usr/local/
sudo make # take a long time to compile
sudo make check
sudo make install
protoc — version # view version
p>
common errors:
protoc: error while loading Shared libraries: libprotobuf.so.0: cannot open
Shared object file: No such file or directory
solution:
export LD_LIBRARY_PATH = $LD_LIBRARY_PATH:/usr/local/lib p>