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

前端 未结 6 1451
逝去的感伤
逝去的感伤 2021-01-02 03:34

I am trying to build a sample app with go grpc but I am unable to generate the code using \"protoc\"

Have installed the required libraries/go packages using:

6条回答
  •  -上瘾入骨i
    2021-01-02 04:08

    Many of the other responses address path issues but if it's not installed, you can install it using the following command:

    go install google.golang.org/grpc/cmd/protoc-gen-go-grpc
    

提交回复
热议问题