sudo port install automake libtool autogen autoconf wget https://github.com/protocolbuffers/protobuf/archive/v3.14.0.tar.gz tar -xzvf protobuf-3.14.0.tar.gz cd protobuf-3.14.0 ./autogen.sh ./configure make sudo make install go install google.golang.org/protobuf/cmd/protoc-gen-go # run outside of project with module, add $GOBIN to $PATH