Skip to content

Instantly share code, notes, and snippets.

@mrLSD
Forked from sofyan-ahmad/Install protobuf 3 on Ubuntu
Last active December 2, 2018 10:59
Show Gist options
  • Select an option

  • Save mrLSD/ee43fe24fddd4f07f625a80bb2284057 to your computer and use it in GitHub Desktop.

Select an option

Save mrLSD/ee43fe24fddd4f07f625a80bb2284057 to your computer and use it in GitHub Desktop.
# 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/
# Optional: change owner
sudo chown [user] /usr/local/bin/protoc
sudo chown -R [user] /usr/local/include/google
# Important s-link
sudo ln -s /protoc3/bin/protoc /usr/bin/protoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment