其他分享
首页 > 其他分享> > protoc-gen-go: program not found or is not executable 问题解决

protoc-gen-go: program not found or is not executable 问题解决

作者:互联网

protoc-gen-go: program not found or is not executable

 

 

 

go install google.golang.org/protobuf/cmd/protoc-gen-go@latest

 

 

 

protoc --proto_path=./protos/ ./protos/*.proto --go_out=plugins=grpc:./pb

 

 

--go_out: protoc-gen-go: plugins are not supported; use 'protoc --go-grpc_out=...' to generate gRPC

 

protoc --proto_path=./protos/ ./protos/*.proto --go-grpc_out=./pb       

 

 

     

标签:executable,protoc,proto,--,program,protos,go,out
来源: https://www.cnblogs.com/kala00k/p/16472457.html