在我的mac M1计算机上,尝试使用以下命令下载Fabric二进制文件和图像:
卷曲-sSL<Fabric 2.4.1>|的URLbash-s
获取错误:
===> Downloading version 2.4.1 platform specific fabric binaries
===> Downloading: https://github.com/hyperledger/fabric/releases/download/v2.4.1/hyperledger-fabric-darwin-arm64-2.4.1.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9 100 9 0 0 23 0 --:--:-- --:--:-- --:--:-- 23
tar: Error opening archive: Unrecognized archive format
==> There was an error downloading the binary file.
------> 2.4.1 platform specific fabric binary is not available to download <----
我分叉了fabric samples存储库,并更新了docker映像,使其在apple m1芯片上工作。
请随意查看:https://github.com/gpietro/fabric-samples-apple-m1
在撰写本文时,Hyperledger Fabric没有发布为M1 Mac构建的Docker镜像。
- 本机64位ARM支持的GitHub问题
- 相关StackOverflow问题
Edit:Fabric v2.5发布arm64二进制文件和Docker映像。