jon*_*cio 5 raspberry-pi hyperledger hyperledger-fabric
我目前正在使用 Raspberry Pi 3 和最新的 Raspbian Buster 版本。我按照这里的安装指南进行操作:
https://hyperledger-fabric.readthedocs.io/en/release-1.4/install.html
并预先安装了所有先决条件:curl、docker、docker-compose、go、python、nodejs。
但是我运行fabric-samples安装命令的那一刻:
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s
我遇到以下错误:
Clone hyperledger/fabric-samples repo
===> Cloning hyperledger/fabric-samples repo and checkout v2.0.0
Cloning into 'fabric-samples'...
remote: Enumerating objects: 19, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 4685 (delta 4), reused 7 (delta 1), pack-reused 4666
Receiving objects: 100% (4685/4685), 1.67 MiB | 193.00 KiB/s, done.
Resolving deltas: 100% (2330/2330), done.
error: pathspec 'v2.0.0' did not match any file(s) known to git
Pull Hyperledger Fabric binaries
===> Downloading version 2.0.0 platform specific fabric binaries
===> Downloading: https://github.com/hyperledger/fabric/releases/download/v2.0.0/hyperledger-fabric-linux-armv7l-2.0.0.tar.gz
--2020-02-10 17:04:37-- https://github.com/hyperledger/fabric/releases/download/v2.0.0/hyperledger-fabric-linux-armv7l-2.0.0.tar.gz
Resolving github.com (github.com)... 13.229.188.59
Connecting to github.com (github.com)|13.229.188.59|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-02-10 17:04:37 ERROR 404: Not Found.
tar (child): hyperledger-fabric-linux-armv7l-2.0.0.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
rm: cannot remove 'hyperledger-fabric-linux-armv7l-2.0.0.tar.gz': No such file or directory
==> There was an error downloading the binary file.
------> 2.0.0 platform specific fabric binary is not available to download <----
Run Code Online (Sandbox Code Playgroud)
似乎 armv7 处理器无法使用结构二进制文件和图像。其他答案(例如这个答案)向我展示了如何手动构建结构二进制文件和图像,但我仍然不知道如何让结构样本在之后运行。
有谁知道如何在 RPi 上安装 Hyperledger Fabric,以便我可以像文档中一样流畅地运行byfn和fabcar等示例?
小智 0
Raspberry 现在有一个 64 位操作系统,您需要它来运行 Hyperledger Fabric ( https://www.raspberrypi.org/forums/viewtopic.php?t=275370 )。
我已经为我自己的项目制作了该操作系统的 docker 映像,如果您关注此存储库https://github.com/SurfTheRepo/HLF-for-RPI- ,您可以找到该映像。如果克隆存储库,您将在 bin 文件夹中找到 64 位操作系统的二进制文件。我有一些链接解释了我如何在自述文件中构建图像和二进制文件。
顺便说一句,一切都是为了 HLF2.3。
我已经能够使用它在我的树莓派上运行测试网络。
但我的 Raspberry Pi 是型号 4,容量为 8GB,我认为这在 Pi3 上是不可能的(当我运行测试工作时,RAM 使用量上升到大约 4GB)。
我仍在研究这个项目,所以我经常更改存储库,但您应该能够从中大致了解它是如何工作的。
| 归档时间: |
|
| 查看次数: |
899 次 |
| 最近记录: |