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?
gogoprotobuf is a fork of golang/protobuf with extra code generation features. This code generation is used to achieve: fast marshalling and unmarshalling. more canonical Go structures. goprotobuf compatibility.
This tool generates Go language bindings of service s in protobuf definition files for gRPC. For usage information, please see our quick start guide.
protoc-gen-go
needs to be in your shell path, i.e. one of the directories listed in the PATH
environment variable, which is different from the Go path. You can test this by simply typing protoc-gen-go
at the command line: If it says "command not found" (or similar) then it's not in your PATH
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With