using protobuf version 2.6.1 ( which i installed via homebrew)
I am trying to run
$ protoc --go_out=../cloud/ *.proto
I keep receiving this error.
$ protoc-gen-go: program not found or is not executable
$ --go_out: protoc-gen-go: Plugin failed with status code 1.
I have the protoc-gen-go installed in my go path. Anyone else have this issue?
go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
. There may be something wrong with the homebrew install.protoc-gen-go
is in your "go path", but it needs to be in your shell path, i.e. one of the directories listed in thePATH
environment variable. What happens if you just typeprotoc-gen-go
at the command line? If it says "command not found" (or similar) then it's not in yourPATH
.