You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First install the Protocol Buffer Compiler Installation.
Run: $ brew install protobuf
Then execute:
$ go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
$ go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
Go install directs binaries to $GOPATH/bin/. Add this to your path variable to be able to execute the proper binaries. I did this by adding the following to my ~/.zshrc file:
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/protoc-3.14.0-linux-x86_64.zip
unzip protoc-3.14.0-linux-x86_64.zip
mv bin/protoc /usr/local/bin/
mac 64位的电脑,按上述步骤安装完protoc
在执行 goctl rpc protoc transform.proto --go_out=./pb --go-grpc_out=./pb --zrpc_out=.后,报错:sh: /usr/local/bin/protoc: cannot execute binary file
看了下, /usr/local/bin/protoc文件确实有的
应该怎么源码安装呀
The text was updated successfully, but these errors were encountered: