Skip to content

Instantly share code, notes, and snippets.

@savsgio
Last active March 1, 2019 23:57
Show Gist options
  • Save savsgio/11e2d9bbdf63c82156c5e82179661fff to your computer and use it in GitHub Desktop.
Save savsgio/11e2d9bbdf63c82156c5e82179661fff to your computer and use it in GitHub Desktop.
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