错误描述:
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.
解决方案:
step1:找到protobuf的安装位置,cd到protobuf/protoc-gen-go/,执行go build之后会生成可执行文件
step2:cp protoc-gen-go /usr/local/bin/
拿下!
参考链接
参考链接