天天看點

ubuntu18.04環境下 golang配置proto遇到的問題01

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

Please specify a program using absolute path or make sure the program is available in your PATH system variable

--go_out: protoc-gen-go: Plugin failed with status code 1.

經過網上各種環境變量設定,還是依然報錯。

最後的解決辦法是将GOPath/bin目錄下的protoc-gen-go檔案拷貝至/bin目錄下

sudo cp /home/test/go/bin/protoc-gen-go /bin