Hyperledger结构“make peer”命令失败

时间:2017-02-28 02:16:50

标签: makefile hyperledger hyperledger-fabric

我尝试按照指南here在Windows 10中设置hyperledger fabric-0.6。 (在流浪汉中部署环境) 完成所有先决条件后,我在执行命令

后进入流浪者
make peer 

它回复为:

W: Size of file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty-security_main_binary-amd64_Packages.gz is not what the server reported 729504 729509
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-amd64/Packages  Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
Fetched 3769 kB in 18s (207 kB/s)
update-java-alternatives: directory does not exist: /usr/lib/jvm/java-1.8.0-openjdk-amd64
The command '/bin/sh -c core/chaincode/shim/java/javabuild.sh' returned a non-zero code: 1
Makefile:217: recipe for target 'build/image/javaenv/.dummy' failed
make: *** [build/image/javaenv/.dummy] Error 1

我想知道这里出了什么问题(是关于Makefile的?)以及如何修复它。

1 个答案:

答案 0 :(得分:0)

您的图片中没有安装java。

apt-get install default-jdk-headless