Skip to content

Instantly share code, notes, and snippets.

@ArashHosseini
Last active December 9, 2020 16:42
Show Gist options
  • Save ArashHosseini/05d185c6b5e37ce3230de05c3e7ed291 to your computer and use it in GitHub Desktop.
Save ArashHosseini/05d185c6b5e37ce3230de05c3e7ed291 to your computer and use it in GitHub Desktop.
installing google protobuf, cpp and python
# To build protobuf from source, the following tools are needed:
sudo apt-get install autoconf automake libtool curl make g++ unzip
#download cpp
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.5.0/protobuf-cpp-3.5.0.tar.gz
#unpack them
sudo tar xzf protobuf-cpp-3.5.0.tar.gz
cd protobuf-3.5.0
sudo ./configure
sudo make
sudo make check
#the output should be like:
#============================================================================
#Testsuite summary for Protocol Buffers 3.5.0
#============================================================================
# TOTAL: 7
# PASS: 7
# SKIP: 0
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 0
sudo make install
# refresh shared library cache
sudo ldconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment