Forked from rvegas/Install protobuf 3.3 on Ubuntu 16.04
Last active
December 4, 2022 13:48
-
-
Save olivoil/a2e0e4f3427db8b6ef4a6374f9c4cb32 to your computer and use it in GitHub Desktop.
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
# Make sure you grab the latest version | |
curl -OL https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-linux-x86_64.zip | |
# Unzip | |
unzip protoc-3.5.1-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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install protoc-gen-go using:
sudo apt install libprotobuf-dev protobuf-compiler golang-goprotobuf-dev -y