Skip to content

Instantly share code, notes, and snippets.

@sofyan-ahmad
Last active February 21, 2023 10:40
Show Gist options
  • Save sofyan-ahmad/37787e5ed098c97919b8c593f0ec44d8 to your computer and use it in GitHub Desktop.
Save sofyan-ahmad/37787e5ed098c97919b8c593f0ec44d8 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 chwon [user] /usr/local/bin/protoc
sudo chwon -R [user] /usr/local/include/google
@gsilano
Copy link

gsilano commented Jan 3, 2020

Here the link to my Gist if you are interested in recovering the previous version of protobuf installed on your pc (Ubuntu 16.04).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment