Skip to content

Instantly share code, notes, and snippets.

@crackcomm
Forked from sofyan-ahmad/Install protobuf 3 on Ubuntu
Last active December 5, 2017 10:57
Show Gist options
  • Save crackcomm/0c15a8cd8ef6f201720bf697ee1cb312 to your computer and use it in GitHub Desktop.
Save crackcomm/0c15a8cd8ef6f201720bf697ee1cb312 to your computer and use it in GitHub Desktop.
#
# Original source:
# https://gist.github.com/sofyanhadia/37787e5ed098c97919b8c593f0ec44d8
#
# Make sure you grab the latest version
curl -OL https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip
# Unzip
unzip protoc-3.2.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/
# Remove all temp files
rm -rf protoc3 protoc-3.2.0-linux-x86_64.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment