Skip to content

Instantly share code, notes, and snippets.

@epomatti
Created April 26, 2023 22:11
Show Gist options
  • Save epomatti/7519b16cea7adc96004263f2007da44a to your computer and use it in GitHub Desktop.
Save epomatti/7519b16cea7adc96004263f2007da44a to your computer and use it in GitHub Desktop.
Install Go / Golang protobuf / protobuffer / protoc

Install Protobuf on Ubuntu

Frequently you'll need $GOPATH/bin available with your $PATH.

Example with ~/.bashrc file for Ubuntu:

export GOPATH=/home/pomatti/go
export PATH=$PATH:$GOPATH/bin

Download a ZIP release protoc-{version}-{platform}.zip: https://github.com/protocolbuffers/protobuf/releases

Unzip and move bin/protoc to $GOPATH/bin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment