Last active
April 2, 2024 07:41
-
-
Save pgvishnuram/fc29b4c2384ecc5638d0c1fde5315870 to your computer and use it in GitHub Desktop.
download protoc
This file contains hidden or 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 | |
| go install google.golang.org/grpc/cmd/[email protected] | |
| go install google.golang.org/protobuf/cmd/[email protected] | |
| export PATH="$PATH:$(go env GOPATH)/bin" | |
| PROTOC_ZIP=protoc-21.9-osx-x86_64.zip | |
| curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v21.9/$PROTOC_ZIP | |
| sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc | |
| sudo unzip -o $PROTOC_ZIP -d /usr/local 'include/*' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment