fabcar智能合约案例中运行startFabric.sh报错fabric-ca-client binary not found..

在执行fabric-samples/fabcar的startFabric.sh时遇到'fabric-ca-client binary not found..'的问题,通过检查二进制文件、安装缺失的Fabric Binaries、设置Go环境变量并配置代理,最终解决了错误,成功运行了脚本。
摘要由CSDN通过智能技术生成

在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

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值