在fabric-samples/fabcar中运行startFabric.sh出现错误:
fabric-ca-client binary not found..
Follow the instructions in the Fabric docs to install the Fabric Binaries:
https://hyperledger-fabric.readthedocs.io/en/latest/install.html
1、检查fabric-ca-client binary文件到底有没有,一般在 abric-samples/bin中(和peer一样的二进制文件)
2、我是真的没有,就按照上面提示的地址下载了一个,并执行下面命令将其复制到/usr/local/bin中
sudo cp fabric-ca-client /usr/local/bin/fabric-ca-client
sudo chmod +x /usr/local/bin/fabric-ca-client
重新执行startFabric.sh时又出现了新的错误:
Error: failed to normalize chaincode path: failed to determine module root: exec: "go": executable file not found in $PATH
Chaincode packaging has failed
Deploying chaincode failed
网上很多帖子说是go需要配置代理,给出如下命令
go
env
-w G