Created
August 19, 2018 08:24
-
-
Save ryujaehun/991f5f1e8c1485dea72646877707f497 to your computer and use it in GitHub Desktop.
Install protobuf 3.6.1 on Ubuntu 16.04
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
#! /bin/bash | |
# Make sure you grab the latest version | |
curl -OL https://github.com/google/protobuf/releases/download/v3.6.1/protoc-3.6.1-linux-x86_64.zip | |
https://github.com/google/protobuf/releases/download/v3.6.1/protoc-3.6.1-linux-x86_64.zip | |
# Unzip | |
unzip protoc-3.6.1-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 |
Thanks! right
Thank! very helpful.
I have followed the above steps to upgrade from older version of protoc to 3+. still I get protoc --version as "libprotoc 2.6.1".
Just consolidated the whole process by considering other comments
#! /bin/bash
# Make sure you grab the latest version
curl -OL https://github.com/google/protobuf/releases/download/v3.6.1/protoc-3.6.1-linux-x86_64.zip
# Unzip
unzip protoc-3.6.1-linux-x86_64.zip -d protoc3
# Move protoc to /usr/local/bin/
sudo cp -r protoc3/bin/* /usr/local/bin/
# Move protoc3/include to /usr/local/include/
sudo cp -r protoc3/include/* /usr/local/include/
# Optional: change owner
sudo chown $USER /usr/local/bin/protoc
sudo chown -R $USER /usr/local/include/google
sudo ldconfig
Great thanks!
I have followed the above steps to upgrade from older version of protoc to 3+. still I get protoc --version as "libprotoc 2.6.1".
I have the same problem, how did you solved this?
Thanks !! That works like a charm !
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks for this.