Error when i running the application hyperledger fabric

假如想象 提交于 2019-12-25 18:53:19

问题


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:


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




回答2:


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.




回答3:


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.



来源:https://stackoverflow.com/questions/44723936/error-when-i-running-the-application-hyperledger-fabric

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!