当前位置 : 主页 > 手机开发 > harmonyos >

【已解决】protoc-gen-go: program not found or is not executable Please specify a program using —————————

来源:互联网 收集:自由互联 发布时间:2023-08-28
命令 (base) ➜ pb protoc --go_out=. helloworld.proto 报错信息 MAC m1 环境下 protoc-gen-go: program not found or is not executablePlease specify a program using absolute path or make sure the program is available in your PATH syste

命令

(base) ➜  pb protoc --go_out=. helloworld.proto                     

报错信息

MAC m1 环境下

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.

解决方案

方案1

亲测

brew install protoc-gen-go
brew install protoc-gen-go-grpc

安装成功

protoc-gen-go --version
网友评论