当我运行Hyperledger Fabric应用程序时出现错误。

huangapple go评论76阅读模式
英文:

Error when i running the application hyperledger fabric

问题

我正在按照这个教程进行操作:
https://github.com/ITPeople-Blockchain/auction
在步骤:“构建节点和Orderer二进制文件并启动Orderer”中,
在执行命令:make native

我收到了以下错误信息:

> Makefile:71: *** “No go in PATH: Check dependencies”. Arresto.

我正在使用VirtualBox上的Ubuntu,并且已经正确设置了gopath。

英文:

I'm following this tutorial:
https://github.com/ITPeople-Blockchain/auction
and at the step: "Build peer and Orderer binaries and Start Orderer",
at the command: make native

I recived following error:

> Makefile:71: *** "No go in PATH: Check dependencies". Arresto.

I'm using Ubuntu on VirtualBox and I set the gopath correctly

答案1

得分: 1

GOPATH可能是正确的,但这并不是错误所指的问题- 它是在说你的PATH中没有go命令。你需要将GOROOT/bin添加到你的PATH中。

英文:

GOPATH may be right, but that's not what the error refers to - it's saying that the go command is not in your PATH. You need to add GOROOT/bin to your PATH.

答案2

得分: 0

我正在遵循这个教程:https://github.com/ITPeople-Blockchain/auction,并且在步骤:“构建节点和Orderer二进制文件并启动Orderer”中,执行命令:make native。

上述提到的存储库大约2个月前进行了更新,建议您尝试遵循最近更新的教程:入门指南

Makefile:71: *** "No go in PATH: Check dependencies". Arresto.

请注意,^^^错误实际上告诉您在PATH中缺少go二进制文件。请检查您是否配置了GOPATHGOROOT,并确保go二进制文件在PATH中可访问。

英文:

> I'm following this tutorial: https://github.com/ITPeople-Blockchain/auction and at the step: "Build peer and Orderer binaries and Start Orderer", at the command: make native

The repository mentioned above has been updated about 2 months ago, while while you'd better try to follow more recently updated: Get Started.

> Makefile:71: *** "No go in PATH: Check dependencies". Arresto.

Also note that ^^^ error actually tells you are missing go binary from your PATH. Check you have configured GOPATH, GOROOT and make sure go binary accessible within PATH.

答案3

得分: 0

go path未设置。

查找go语言的安装目录(例如Linux)。

whereis go

然后导出以下变量。

export GOPATH=$HOME/go export PATH=$PATH:$GOPATH/bin

这些导出的变量范围仅限于当前终端,所以最好将其设置到文件**~/.bashrc**中。

英文:

go path is not set.

find installed directory of go lang. (e.g linux )

> whereis go

then export below var.

> export GOPATH=$HOME/go export PATH=$PATH:$GOPATH/bin

these exported variable scope is limited to current terminal only so better to set into file ~/.bashrc

huangapple
  • 本文由 发表于 2017年6月23日 22:31:16
  • 转载请务必保留本文链接:https://go.coder-hub.com/44723936.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定