Last active
March 1, 2019 23:57
-
-
Save savsgio/11e2d9bbdf63c82156c5e82179661fff 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
VERSION=3.7.0 | |
# Make sure you grab the latest version | |
curl -OL https://github.com/google/protobuf/releases/download/v${VERSION}/protoc-${VERSION}-linux-x86_64.zip | |
# Unzip | |
unzip protoc-${VERSION}-linux-x86_64.zip -d protoc3 | |
# Move protoc to /usr/local/bin/ | |
mv protoc3/bin/* /usr/local/bin/ | |
# Move protoc3/include to /usr/local/include/ | |
mv protoc3/include/* /usr/local/include/ | |
# Clean | |
rm -rf protoc3/ | |
rm protoc-${VERSION}-linux-x86_64.zip | |
echo "Protobuf ${VERSION} has been installed..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment