Skip to content

Instantly share code, notes, and snippets.

@robinvanemden
Last active December 30, 2020 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robinvanemden/160586e0371d071fedfca8deae04014a to your computer and use it in GitHub Desktop.
Save robinvanemden/160586e0371d071fedfca8deae04014a to your computer and use it in GitHub Desktop.
Install latest protobuf c/c++ lib (at time of writing, 3.14.0) on Ubuntu 18.04 x86_64
#!/bin/bash
sudo apt-get install autoconf automake libtool curl make g++ unzip
##### EITHER LATEST FULL ####
# git clone --recurse-submodules https://github.com/protocolbuffers/protobuf.git /root/protobuf
##### OR C/C++ VERSION ####
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/protobuf-cpp-3.14.0.tar.gz
tar -zxvf protobuf-cpp-3.14.0.tar.gz
mv protobuf-3.14.0 protobuf
cd protobuf
# git submodule update --init --recursive
./autogen.sh
./configure
make
make check
sudo make install
sudo ldconfig # refresh shared library cache.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment