[英]Issue while installing protobuf in ubuntu 14.04 for go lang
I am following this documentation for installing the golang protobuf on ubuntu 14.04 for go version go1.6 linux/amd64.
我正在遵循此文档在gountu 14.04
go version go1.6 linux/amd64.
ubuntu 14.04上安装golang protobuf go version go1.6 linux/amd64.
But it doesn't install the protoc
. 但是它没有安装
protoc
。 I am getting an error that protoc is not installed. 我收到未安装协议的错误。 Also, I have
$GOROOT/bin
in the path enviroment variable. 另外,我在路径环境变量中有
$GOROOT/bin
。
The error message is clear to me, you have to install the protoc
tool first, it is specified in the documentation: Install the standard C++ implementation of protocol buffers from https://developers.google.com/protocol-buffers/
该错误消息对我很清楚,您必须首先安装
protoc
工具,该错误信息在文档中进行了指定: Install the standard C++ implementation of protocol buffers from https://developers.google.com/protocol-buffers/
Also, the error message says the same: on ubuntu system, there is a package containing this binary, which is protobuf-compiler
. 同样,错误消息也是如此:在ubuntu系统上,有一个包含此二进制文件的软件包,即
protobuf-compiler
。
The golang protobuf protoc-gen-go is merely a plugin of protoc
, that's why you need protoc
first. 该golang protobuf的protoc-GEN-go是仅仅是一个插件
protoc
,这就是为什么你需要protoc
第一。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.