i'm running osx
$ uname -rsv
Darwin 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:54 PST 2021; root:xnu-8019.61.5~1/RELEASE_X86_64
installed with brew and from binaries both didn't work
$ brew install protobuf
$ protoc --version
libprotoc 3.19.4
i'm getting an error when i'm trying to generate code using protos and grpc it says --go-out unknown flag
$ protoc -I protos/ protos/curr.proto --go-out=plugins=grpc:protos/curr
Unknown flag: --go-out
make: *** [protos] Error 1
After installing from pre-compiled binaries ( didn't work )
$ PB_REL="https://github.com/protocolbuffers/protobuf/releases"
$ curl -LO $PB_REL/download/v3.15.8/protoc-3.15.8-linux-x86_64.zip
$ unzip protoc-3.15.8-linux-x86_64.zip -d $HOME/.local
$ export PATH="$PATH:$HOME/.local/bin"
-bash: /$HOME/.local/bin/protoc: cannot execute binary file
Any idea how to solve this ?