Skip to content

Instantly share code, notes, and snippets.

@pgvishnuram
Last active April 2, 2024 07:41
Show Gist options
  • Select an option

  • Save pgvishnuram/fc29b4c2384ecc5638d0c1fde5315870 to your computer and use it in GitHub Desktop.

Select an option

Save pgvishnuram/fc29b4c2384ecc5638d0c1fde5315870 to your computer and use it in GitHub Desktop.
download protoc
#!/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