Forked from ryujaehun/Install protobuf 3.6.1 on Ubuntu 16.04
Last active
July 27, 2022 08:17
-
-
Save katopz/59c820e8661b8e9ae366931d6bda7c0d to your computer and use it in GitHub Desktop.
Install protobuf 3.8.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 | |
# Make sure you grab the latest version https://github.com/protocolbuffers/protobuf/releases/ | |
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.8.0/protoc-3.8.0-linux-x86_64.zip | |
# Unzip | |
unzip protoc-3.8.0-linux-x86_64.zip -d protoc3 | |
# Move protoc to /usr/local/bin/ | |
sudo mv protoc3/bin/* /usr/local/bin/ | |
# Move protoc3/include to /usr/local/include/ | |
sudo mv protoc3/include/* /usr/local/include/ | |
# Optional: change owner | |
sudo chown $USER /usr/local/bin/protoc | |
sudo chown -R $USER /usr/local/include/google | |
# Reinitialize shell | |
source ~/.bashrc | |
# Ensure version | |
protoc --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment