Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Andoryuuta/ff62b3b00c66d13da859fb1babd00662 to your computer and use it in GitHub Desktop.
Save Andoryuuta/ff62b3b00c66d13da859fb1babd00662 to your computer and use it in GitHub Desktop.
# Make sure you grab the latest version for your OS and arch from the releases page
# at https://github.com/google/protobuf/releases
curl -OL https://github.com/google/protobuf/releases/download/v3.6.0/protoc-3.6.0-linux-x86_64.zip
# Unzip
unzip protoc-3.6.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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment