无法下载最新的 hyperledger fabric 二进制文件

问题描述 投票:0回答:7

运行命令时:超级账本页面上提供的

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 v1.4.4
Cloning into 'fabric-samples'...
remote: Enumerating objects: 4427, done.
remote: Total 4427 (delta 0), reused 0 (delta 0), pack-reused 4427
Receiving objects: 100% (4427/4427), 1.61 MiB | 2.81 MiB/s, done.
Resolving deltas: 100% (2179/2179), done.
Note: checking out 'v1.4.4'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at bc72f3e Remove Stalebot

Pull Hyperledger Fabric binaries

===> Downloading version 1.4.4 platform specific fabric binaries
===> Downloading:  https://github.com/hyperledger/fabric/releases/download/v1.4.4/hyperledger-fabric-darwin-amd64-1.4.4.tar.gz
https://github.com/hyperledger/fabric/releases/download/v1.4.4/hyperledger-fabric-darwin-amd64-1.4.4.tar.gz: Unsupported scheme.
tar: Error opening archive: Failed to open 'hyperledger-fabric-darwin-amd64-1.4.4.tar.gz'
rm: hyperledger-fabric-darwin-amd64-1.4.4.tar.gz: No such file or directory
==> There was an error downloading the binary file.

------> 1.4.4 platform specific fabric binary is not available to download <----

不确定这是由于最新的 MacOs Catalina 10.15.2 更新还是与 hyperledger fabric 项目本身有关?

有没有人遇到同样的问题?

hyperledger-fabric hyperledger
7个回答
1
投票

伙计,我就是赢不了这个。我们曾经使用

curl
下载脚本中的工件,但我最近将其更改为使用
wget
,因为很多用户都遇到过连接断开的情况,这旨在帮助减轻这种痛苦。但似乎
wget
有一个问题(在某些版本中)使用变量呈现的 URL。你能试试这个吗,这是我把它切换到之前的提交
wget
:

curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/977ed80d3f3b4fe42dfb8f04cc93a92ab75b709e/scripts/bootstrap.sh | bash -s


0
投票

不,这似乎不是您的 MacO 的问题。我认为您应该尝试以下 Hyperledger fabric 文档 中提到的 curl 命令以获取二进制文件、最新的 fabric 图像和 fabric 样本。

curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s

在这里您可以获得最新的生产版本二进制文件,或者如果您想要特定版本。
您还可以在同一文档中找到对结构二进制文件的深入解释。


0
投票

我有同样的问题,对我来说我必须先用 brew install wget 安装 wget,然后使用 curl 来获取二进制文件。


0
投票

用 root 试试

 sudo -i

然后

curl -sSL Hyperledger binary -s -- 1.4.1 1.4.1 0.4.15
它对我有用


0
投票

我所做的是从 shell 脚本 (https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh) 中提到的 github 存储库单独下载 tar 文件并将其解压缩,然后然后从同一个 shell 脚本中删除了 pull binaries 部分,然后就可以正常运行了。


0
投票

每当你在执行“.sh”shell 脚本文件时遇到这些类型的错误,你实际上可以查看脚本文件,错误消息总是 else 块的回显语句,所以如果你看一下if 块并尝试执行 if 块中的语句,您可以准确地确定错误发生的位置。在这种情况下,它正在做的是尝试从 URL https://github.com/hyperledger/fabric/releases/download/v${VERSION}/${BINARY_FILE} 下载版本 但是,如果您只是尝试进入 URL https://github.com/hyperledger/fabric/releases/download 您实际上可能会发现该页面甚至不存在并且是 404 错误。您正在执行的脚本已过时。

这是一个更新的安装脚本,其最终结果与现有脚本相同,但语法有所改进。该脚本采用主动选择加入的方法来选择要安装的组件。原始脚本仍然存在于同一位置:

curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/main/scripts/bootstrap.sh| bash -s

-2
投票

最好使用这个命令

curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s

它直接安装 fabric 二进制文件和图像

© www.soinside.com 2019 - 2024. All rights reserved.