newonexd / newonexd.github.io

0 stars 0 forks source link

Hyperledger Fabric环境搭建 ~ 任晓东的博客 #11

Open newonexd opened 4 years ago

newonexd commented 4 years ago

https://newonexd.github.io/2019/11/23/blog/fabric/Fabric%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/

1250446609 commented 4 years ago

如果仅仅执行./bootstrap.sh脚本好像目录没有对应的几个文件生成。 连linux-amd64目录也没有 执行make release的话 有一个报错 [root@VM_0_9_centos fabric]# make release Building release/linux-amd64/bin/configtxlator for linux-amd64 mkdir -p release/linux-amd64/bin CGO_CFLAGS=" " GOOS=linux GOARCH=amd64 go build -o /root/go/src/github.com/hyperledger/fabric/release/linux-amd64/bin/configtxlator -tags "" -ldflags "-X github.com/hyperledger/fabric/common/tools/configtxlator/metadata.CommitSHA=3ad450d" github.com/hyperledger/fabric/commo n/tools/configtxlator Building release/linux-amd64/bin/peer for linux-amd64 mkdir -p release/linux-amd64/bin CGO_CFLAGS=" " GOOS=linux GOARCH=amd64 go build -o /root/go/src/github.com/hyperledger/fabric/release/linux-amd64/bin/peer -tags "" -ldfl ags "-X github.com/hyperledger/fabric/common/metadata.Version=1.4.5 -X github.com/hyperledger/fabric/common/metadata.CommitSHA=3ad450d -X github.com/hyperledger/fabric/common/metadata.BaseVersion=0.4.18 -X github.com/hyperledger/fabric/common/metadata.BaseDockerLabel=org.hy perledger.fabric -X github.com/hyperledger/fabric/common/metadata.DockerNamespace=hyperledger -X github.com/hyperledger/fabric/common/met adata.BaseDockerNamespace=hyperledger" github.com/hyperledger/fabric/peer /usr/local/go/pkg/tool/linux_amd64/link: signal: killed make: *** [release/linux-amd64/bin/peer] Error 1

newonexd commented 4 years ago

@1250446609 如果bootstrap.sh那一步没有报错的话,

newonexd commented 4 years ago

@1250446609 去release目录下找

newonexd commented 4 years ago

@1250446609 以及script目录,如果bootstrap.sh没报错一定会有文件夹的,

1250446609 commented 4 years ago

relase下面只是生成了templates文件夹。我看你的博客意思是 ./bootstrap.sh或者make release只要执行一种就可了? 我现在问题是执行./bootstrap.sh会生成templates文件夹 执行make relase的话会报signal killed 而且生成的文件只有configtxgen configtxlator cryptogen discover idemixgen

newonexd commented 4 years ago

@1250446609 只选择一种方案执行,temple那个文件夹不是bootstrap生成的,bootstrap只生成bin文件夹,一般只使用bootstrap生成文件。至于make release报错不清楚为何,应该是C编译错误。

1250446609 commented 4 years ago

这个不是文章的问题 是我的内存太小造成的。

a495257982 commented 4 years ago

./bootstrap.sh报错了 Failure downloading binaries (curl RC=6). Please try again and the download will resume from where it stopped.

newonexd commented 4 years ago

@a495257982 ./bootstrap.sh报错了 Failure downloading binaries (curl RC=6). Please try again and the download will resume from where it stopped.

网络原因,多试几次

a495257982 commented 4 years ago

@newonexd

@a495257982 ./bootstrap.sh报错了 Failure downloading binaries (curl RC=6). Please try again and the download will resume from where it stopped.

网络原因,多试几次 多试几次还是报这个错误。额

a495257982 commented 4 years ago

@newonexd

@a495257982 ./bootstrap.sh报错了 Failure downloading binaries (curl RC=6). Please try again and the download will resume from where it stopped.

网络原因,多试几次 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: nexus.hyperledger.org nexus.hyperledger.org

mhly520 commented 4 years ago

你好,我想知道编译出现了文章中提到的那几个文件,但是scrips文件夹中没有fabric-samples文件

newonexd commented 4 years ago

你好,我想知道编译出现了文章中提到的那几个文件,但是scrips文件夹中没有fabric-samples文件

没有的话直接在github上搜索fabric-samples然后下载下来,也是一样的

mhly520 commented 4 years ago

嗯嗯,谢谢