Forked from sofyan-ahmad/Install protobuf 3 on Ubuntu
Last active
November 20, 2023 12:46
-
-
Save rvegas/e312cb81bbb0b22285bc6238216b709b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make sure you grab the latest version | |
curl -OL https://github.com/google/protobuf/releases/download/v3.3.0/protoc-3.3.0-linux-x86_64.zip | |
# Unzip | |
unzip protoc-3.3.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
++ Getting the following error after using the above steps:
$ protoc --version
-bash: /usr/local/bin/protoc: cannot execute binary file: Exec format error