Hyperledger Fabric构建错误

huangapple go评论99阅读模式
英文:

Hyperledger fabric build error

问题

我已经按照http://hyperledger-fabric.readthedocs.io上的指南进行了Hyperledger Fabric的安装和配置,并完成了安装。但是在尝试构建时出现了错误。你能告诉我解决方法吗?

构建Hyperledger Fabric的步骤如下:

cd $GOPATH/src/github.com/hyperledger/fabric
make dist-clean all

错误输出如下:

docker tag hyperledger/fabric-tools hyperledger/fabric-tools:x86_64-1.0.0-rc2-snapshot-4709b33
检查已提交的文件是否包含SPDX-License-Identifier头部...
下列文件缺少SPDX-License-Identifier头部:
orderer/multichain/manager.go
orderer/multichain/manager_test.go

请将Apache许可证头部注释文本替换为:
SPDX-License-Identifier: Apache-2.0
Makefile:111: recipe for target 'license' failed
make: *** [license] Error 1
英文:

I have followed the installation & configuration of hyperledger fabric from http://hyperledger-fabric.readthedocs.io and completed the installation. When I tried to build it I am getting error. Could you let me know the resolution.

To build Hyperledger Fabric:

cd $GOPATH/src/github.com/hyperledger/fabric
make dist-clean all

Error output:

docker tag hyperledger/fabric-tools hyperledger/fabric-tools:x86_64-1.0.0-rc2-snapshot-4709b33
Checking committed files for SPDX-License-Identifier headers ...
The following files are missing SPDX-License-Identifier headers:
orderer/multichain/manager.go
orderer/multichain/manager_test.go

Please replace the Apache license header comment text with:
SPDX-License-Identifier: Apache-2.0
Makefile:111: recipe for target 'license' failed
make: *** [license] Error 1

答案1

得分: 5

尝试运行以下命令:

make peer orderer peer-docker orderer-docker tools-docker configtxgen cryptogen

这样可以跳过许可验证部分,并允许您构建必要的构建模块。

附注:同时,我已经打开了一个JIRA来修复此问题,并提出了更改请求:包含实际修复。

英文:

Try to run:

make peer orderer peer-docker orderer-docker tools-docker configtxgen cryptogen,

instead. This will skip license validation part and will allow you to build necessary building blocks.

PS. Meanwhile I've opened a JIRA to get it fixed and change request: with actual fix.

答案2

得分: 2

前往以下文件:

orderer/multichain/manager.go
orderer/multichain/manager_test.go

在开头添加以下行:

/*
版权所有 IBM Corp.

SPDX-License-Identifier: Apache-2.0
*/

您还可以通过在Fabric中运行以下命令来检查错误是否已解决:

make license

英文:

Go to the following files

orderer/multichain/manager.go
orderer/multichain/manager_test.go

Add the following lines in the beginning

/*
Copyright IBM Corp. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0
*/

You can also check if the error is resolved by running following command from fabric

make license

答案3

得分: 0

你应该使用make release,然后使用make docker

英文:

You should use
make release
and then make docker

huangapple
  • 本文由 发表于 2017年7月12日 06:00:27
  • 转载请务必保留本文链接:https://go.coder-hub.com/45045152.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定