raspberry-pi - 是否可以在 Raspberry Pi 3 中运行 HyperLedger Fabric 2.0?

标签 raspberry-pi hyperledger-fabric hyperledger

我目前正在使用 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 <----

似乎 armv7 处理器无法使用结构二进制文件和图像。其他答案如 this one向我展示如何手动构建结构二进制文件和图像,但我仍然不知道如何让结构样本在之后运行。

有谁知道如何在 RPi 上安装 Hyperledger Fabric 以便我可以运行像 byfn 这样的示例和 fabcar像文档中一样顺利吗?

最佳答案

Raspberry 现在有一个 64 位操作系统,您需要运行 Hyperledger Fabric (https://www.raspberrypi.org/forums/viewtopic.php?t=275370)。
我已经为我自己的项目制作了这个操作系统的 docker 镜像,如果你关注这个 repo https://github.com/SurfTheRepo/HLF-for-RPI- 你可以找到它。 .如果您克隆存储库,您将在 bin 文件夹中找到 64 位操作系统的二进制文件。我有一些链接解释了我如何在自述文件中构建图像和二进制文件。
顺便说一句,一切都是为了 HLF2.3。
我已经能够使用它在我的树莓上运行测试网络。
但是我的 Raspberry Pi 是 4 型并且是 8GB,我认为在 Pi3 上是不可能的(当我运行测试工作时,RAM 使用量上升到大约 4GB)。
我仍在处理这个项目,所以我经常更改 repo,但是您应该能够从中大致了解它是如何工作的。

关于raspberry-pi - 是否可以在 Raspberry Pi 3 中运行 HyperLedger Fabric 2.0?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60180047/

相关文章:

c++ - 从单独的 Raspberry Pi c++ 控制一个 Raspberry Pi 上的程序

hyperledger-fabric - Composer 网络安装 : ERROR no valid responses from any peers

go - 使用 go get 使用模块下载 Hyperledger 问题

raspberry-pi - 打包用于Raspberry Pi 3的Electron应用程序

linux - 交换文件在重启后恢复到原始大小

python - raspberryPi python 包安装在哪里?

hyperledger-fabric - 运行composer-rest-server命令后composer出现"Cannot GET/explorer"错误

docker-compose - 在两台不同的 PC 上设置 Hyperledger 结构

java - 安装java链码抛出无效内存地址错误

linux - 在 centOS 中使用 hyperledger composer-rest-server 生成 REST api 时出错