Skip to content

Instantly share code, notes, and snippets.

@davesnowdon
Created September 22, 2022 20:19
Show Gist options
  • Save davesnowdon/6721da2a695f2440dfb84d2a8d7aacba to your computer and use it in GitHub Desktop.
Save davesnowdon/6721da2a695f2440dfb84d2a8d7aacba to your computer and use it in GitHub Desktop.
# get the protobuf compiler, protoc, for Linux
wget https://github.com/protocolbuffers/protobuf/releases/download/v21.5/protoc-21.5-linux-x86_64.zip
# unpack the zip file and move the protoc command to a convenient directory in your path
mkdir tmp-protoc ; cd tmp-protoc
unzip protoc-21.5-linux-x86_64.zip
mv bin/proto ~/.local/bin
cd .. ; rm -rf tmp-protoc
# install gRPC plugins for go
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment