Last active
December 30, 2020 16:20
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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