Linux CentOS installing protobuf

new version

Google protobuf-3.6.1 is now the latest version, adding new features, see the description

download address

I downloaded the protobuf-all-3.6.1.tar.gz package

new version does not need to execute 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

common errors:
protoc: error while loading Shared libraries: cannot open
Shared object file: No such file or directory
export LD_LIBRARY_PATH = $LD_LIBRARY_PATH:/usr/local/lib

Read More: