Unable to build protobuf to go endpoint

后端 未结 12 792
日久生厌
日久生厌 2021-01-30 12:39

using protobuf version 2.6.1 ( which i installed via homebrew)

I am trying to run

$ protoc --go_out=../cloud/ *.proto

I keep receiv

12条回答
  •  再見小時候
    2021-01-30 13:01

    Mby will help for somebody. I'm on Fedora 29.

    When I installed Go I did:

    echo 'export GOPATH=$HOME/Go' >> $HOME/.bashrc
    source $HOME/.bashrc
    

    So I have my GOPATH set up. Next I do:

    echo 'export PATH=$PATH:$GOPATH/bin' >> $HOME/.bashrc
    source $HOME/.bashrc
    

    And my protoc compiler work lika a charm.

提交回复
热议问题