在 ubuntu 14.04 中为 golang 安装 protobuf 时出现问题
Issue while installing protobuf in ubuntu 14.04 for go lang
我正在按照此文档在 ubuntu 14.04 上为 go version go1.6 linux/amd64.
安装 golang protobuf,但它没有安装 protoc
。我收到未安装 protoc 的错误。另外,我在路径环境变量中有 $GOROOT/bin
。
错误信息我很清楚,你必须先安装protoc
工具,它在文档中指定:Install the standard C++ implementation of protocol buffers from https://developers.google.com/protocol-buffers/
此外,错误消息也是如此:在 ubuntu 系统上,有一个包包含此二进制文件,即 protobuf-compiler
.
golang protobuf protoc-gen-go 只是 protoc
的一个插件,所以你首先需要 protoc
。
我正在按照此文档在 ubuntu 14.04 上为 go version go1.6 linux/amd64.
安装 golang protobuf,但它没有安装 protoc
。我收到未安装 protoc 的错误。另外,我在路径环境变量中有 $GOROOT/bin
。
错误信息我很清楚,你必须先安装protoc
工具,它在文档中指定:Install the standard C++ implementation of protocol buffers from https://developers.google.com/protocol-buffers/
此外,错误消息也是如此:在 ubuntu 系统上,有一个包包含此二进制文件,即 protobuf-compiler
.
golang protobuf protoc-gen-go 只是 protoc
的一个插件,所以你首先需要 protoc
。