Install protobuf 3.6.1 on Ubuntu 16.04
#! /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 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
thanks for this. |
This comment has been minimized.
This comment has been minimized.
Thanks! right |
This comment has been minimized.
This comment has been minimized.
Thank! very helpful. |
This comment has been minimized.
This comment has been minimized.
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". |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
Great thanks! |
This comment has been minimized.
This comment has been minimized.
I have the same problem, how did you solved this? |
This comment has been minimized.
This comment has been minimized.
Thanks !! That works like a charm ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
Thank you for this!
Rather than mv, I prefer cp -pr
Also, one should also do
sudo ldconfig
at the end, to add the new libraries to the LD path