英文:
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二进制文件。请检查您是否配置了GOPATH
、GOROOT
,并确保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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论