简体   繁体   English

Hyperledger结构构建错误

[英]Hyperledger fabric build error

I have followed the installation & configuration of hyperledger fabric from http://hyperledger-fabric.readthedocs.io and completed the installation. 我已经跟踪了http://hyperledger-fabric.readthedocs.io中的超级分层结构的安装和配置,并完成了安装。 When I tried to build it I am getting error. 当我尝试构建它时,我收到错误。 Could you let me know the resolution. 你能让我知道决议吗?

To build Hyperledger Fabric: 要构建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

Try to run: 尝试运行:

make peer orderer peer-docker orderer-docker tools-docker configtxgen cryptogen , 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. PS。 Meanwhile I've opened a JIRA to get it fixed and change request : with actual fix. 同时我打开了一个JIRA来修复它并改变请求 :实际修复。

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 您还可以通过从fabric运行以下命令来检查错误是否已解决

make license

你应该使用make release然后make docker

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM