See https://github.com/protocolbuffers/protobuf/blob/master/src/README.md:
Prerequesites
$ sudo apt-get install autoconf automake libtool curl make g++ unzip
Installation
- From this page, download the
protobuf-all-[VERSION].tar.gz
. - Extract the contents and change in the directory
./configure
make
make check
sudo make install
sudo ldconfig # refresh shared library cache.
Check if it works
$ protoc --version
libprotoc 3.6.1
网友评论