/bin/bash: ./scripts/script.sh: No such file or directory when running ./byfn.sh -m up Hyperledger fabric

家住魔仙堡 提交于 2019-12-10 14:57:16

问题


I am new to blockchain and i was going through the tutorial http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html and doing it. I completed the pre-requisites and download of the samples and binaries. I was able to run ./byfn.sh -m generate successfully. But when I was running ./byfn.sh -m up I got the error:

/bin/bash: ./scripts/script.sh: No such file or directory

Below is the complete log

proceeding ...
Starting peer0.org2.example.com ...
Starting peer0.org1.example.com ...
Starting orderer.example.com ...
Starting peer1.org2.example.com ...
Starting peer0.org2.example.com
Starting peer1.org1.example.com ...
Starting peer0.org1.example.com
Starting orderer.example.com
Starting peer1.org2.example.com
Starting orderer.example.com ... done
cli is up-to-date
/bin/bash: ./scripts/script.sh: No such file or directory

I am running it on windows 7 and on Docker Quick start terminal. Waiting for the help... Thanks in advance.


回答1:


My issue got resolved by following Gari Singh suggestion.

What is the full path the the fabric-samples directory? The usual issue here is that you do not clone the fabric-samples repository into a folder shared with Docker Toolbox. Typically you need to make sure that you clone fabric-samples somewhere under C:\Users on Windows – Gari Singh

Thanks for the help... :)




回答2:


Make sure all prerequisites are installed:

  1. Go is installed and $GOPATH variable is set.
  2. Npm is installed. Run npm -v to check.
  3. Python is installed. Run python --version to check.

If everything looks fine, try to debug which command within ./scripts/script.sh is failing and fix/install a missing dependency.



来源:https://stackoverflow.com/questions/47508528/bin-bash-scripts-script-sh-no-such-file-or-directory-when-running-byfn-sh

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