安装过程参考同事的:Mac环境安装Hyperledger Fabric
问题1:fabric和fabric sample安装的是1.1.0版本,结果运行./byfn.sh -m generate出错
错误信息:
* '' has invalid keys: capabilities
* 'Profiles[TwoOrgsChannel].Application' has invalid keys: Capabilities
* 'Profiles[TwoOrgsOrdererGenesis]' has invalid keys: Capabilities
* 'Profiles[TwoOrgsOrdererGenesis].Orderer' has invalid keys: Capabilities
解决方法:capabilities是1.1.0的新内容,因此安装fabric下bin目录的文件时,需要下载1.1.0的文件,命令行执行 curl https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh |bash -s 1.1.0
问题2:./byfn.sh -m up启动出错
错误信息:Creating peer0.org2.example.com ... error
Creating peer1.org2.example.com ...
...
configure shared paths from Docker -> Preferences... -> File Sharing.\r\nSee https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.\r\n.'
ERROR: Encountered errors while bringing up the project.
解决方法:设置Docker的shared paths,目录为你的hyperledger父目录