Forked from ryujaehun/Install protobuf 3.6.1 on Ubuntu 16.04
Last active
November 25, 2020 07:58
-
-
Save skyrocknroll/409840ca7d08ecf25e4dd76c18a9a95a to your computer and use it in GitHub Desktop.
Install protobuf 3.6.1 on Ubuntu 16.04 #protobuf #grpc
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 | |
If you have custom proto files inclide it in ` /usr/local/include/` | |
After copying do `sudo chown -R $USER:$USER /usr/local/include/google` | |
I have added this https://github.com/googleapis/googleapis/tree/master/google/api | |
### grpc json gateway | |
* https://github.com/grpc-ecosystem/grpc-gateway/tree/master/third_party/googleapis/google/api | |
For protogen validate https://github.com/envoyproxy/protoc-gen-validate | |
* https://github.com/envoyproxy/protoc-gen-validate/blob/master/validate/validate.proto | |
### Intellij best protobuf plugin | |
* https://github.com/jvolkman/intellij-protobuf-editor | |
-- Make sure you add `/usr/local/include` in here https://github.com/jvolkman/intellij-protobuf-editor/raw/master/doc/settings.png and `file:///usr/local/include` has read permission to the current user |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment