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

前端 未结 6 1475
逝去的感伤
逝去的感伤 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条回答
  •  粉色の甜心
    2021-01-02 04:10

    They commented above that the following package had to be added

    sudo apt install protobuf-compiler
    

    In my case I also had to add this one ..

    sudo apt install golang-goprotobuf-dev
    

提交回复
热议问题