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
.