douba9020
douba9020
2017-06-23 14:31

运行应用程序超级账本结构时出错

已采纳

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

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

3条回答

  • dongzhi4498 dongzhi4498 4年前

    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

    点赞 评论 复制链接分享
  • dourunlao1642 dourunlao1642 4年前

    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.

    点赞 评论 复制链接分享
  • douqian2957 douqian2957 4年前

    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.

    点赞 评论 复制链接分享