安装示例,二进制文件和Docker映像在Mac上不起作用

时间:2018-11-27 18:44:10

标签: bash hyperledger-fabric hyperledger

当我遵循安装文档(https://hyperledger-fabric.readthedocs.io/en/release-1.3/install.html)并执行

curl -sSL url_removed | bash -s 1.3.0

我收到此错误:

ERROR: Unexpected argument: --

Usage: bash [OPTION]... [version [ca_version [thirdparty_version]]]

OPTIONS:
    -h|--help Print this message
    -d        Bypass docker image download
    -s        Bypass fabric-samples repo clone
    -b        Bypass download of platform-specific binaries

EXAMPLES:
    To download docker images for version 1.3.0
    ==> bash -sb 1.3.0

任何人都可以帮助您。我不知道

curl --version

curl 7.62.0(x86_64-apple-darwin18.0.0)libcurl / 7.62.0 SecureTransport zlib / 1.2.11

1 个答案:

答案 0 :(得分:1)

今天遇到了同样的问题。使用以下步骤对其进行了修复:

  1. 下载https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh
  2. 在编辑器中打开文件并删除以下代码块 enter image description here
  3. 通过运行curl -sSL <url> | bash
  4. 使文件可执行
  5. 现在像curl -sSL <url> | bash -s一样运行文件

以上等同于运行SAMPLES=false。如果要运行{ "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "version": "1.0", "type": "AdaptiveCard", "speak": "", "body": [ { "type": "TextBlock", "horizontalAlignment": "center", "text": "Все машины", "weight": "bolder", "isSubtle": false }, { "type": "TextBlock", "text": "Внимание, вы вошли в режим тендера.", "separator": true } ], "actions": [ { "type": "Action.Submit", "title": "Подтвердить лот(ы)", "data": { "msteams": { "type": "messageBack", "displayText": "Идет подтверждение ваших лотов, ожидайте!", "text": "/accept", "value": "{\"x\": \"bfVal\", \"y\": \"from value\"}" } } }, { "type": "Action.Submit", "title": "Отменить все лоты", "data": { "x": "123", "msteams": { "type": "messageBack", "displayText": "Идет отменение ваших лотов, ожидайте!", "text": "/cancel", "value": "{\"bfKey\": \"bfVal\", \"conflictKey\": \"from value\"}" } } } ] },请编辑文件并设置try { // Pull in the data from Microsoft Graph. const client = new SimpleGraphClient(tokenResponse.token); const me = await client.getList(); var i = 0; while (i < me['value'].length) { feed = { "type": "ColumnSet", "separator": true, "columns": [ { "type": "Column", "width": 1, "items": [ { "type": "TextBlock", "text": "Продукт", "isSubtle": true }, { "type": "TextBlock", "size": "extraLarge", "color": "accent", "text": me.value[i].fields.Good, "spacing": "none" }, { "type": "TextBlock", "text": "Дата: " + dateFormat(me.value[i].fields.ShipmentDateTime, 'dd-mm-yyyy'), "spacing": "yes" } ] }, { "type": "Column", "width": "auto", "items": [ { "type": "TextBlock", "text": " " }, { "type": "Image", "url": "https://png.pngtree.com/svg/20170614/engine_oil_410031.png", "size": "medium", "spacing": "yes" }, { "type": "TextBlock", "text": " ID: " + me.value[i].fields.id, "value": me.value[i].fields.id } ] }, { "type": "Column", "width": 1, "items": [ { "type": "TextBlock", "horizontalAlignment": "right", "text": "RUB", "isSubtle": true }, { "type": "TextBlock", "horizontalAlignment": "right", "size": "extraLarge", "color": "accent", "text": me.value[i].fields.PricePerTon, "spacing": "none" }, { "type": "Input.Toggle", "title": "Приобрести лот", "valueOn": "true", "valueOff": "false", "id": "buyGood", "spacing": "yes" } ] } ] } tender.body.push(feed); i++; }

运行上述命令以安装结构将是HL Fabric的新手尝试做的第一件事。如果即使这个基本步骤都行不通,那么我不得不怀疑HL Fabric的其余质量。