建立对等节点时出错:"bzip2数据无效";在goshim.tar.bz2中 [英] Error building peer: "bzip2 data invalid" in goshim.tar.bz2

查看:95
本文介绍了建立对等节点时出错:"bzip2数据无效";在goshim.tar.bz2中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

某些用户在建立对等方时遇到失败,如下所示:

Some users experience a failure building the peer as follows:

$ make peer
Building docker ccenv-image
docker build  -t hyperledger/fabric-ccenv build/image/ccenv
Sending build context to Docker daemon 20.19 MB
Step 1 : FROM hyperledger/fabric-baseimage:x86_64-0.2.2
 ---> 4ac07a26ca7a
Step 2 : COPY payload/chaintool payload/protoc-gen-go /usr/local/bin/
 ---> Using cache
 ---> 027688f7aea9
Step 3 : ADD payload/goshim.tar.bz2 $GOPATH/src/
Error processing tar file(bzip2 data invalid: bad magic value in continuation file): 
make: *** [build/image/ccenv/.dummy-x86_64-0.7.0] Error 1

推荐答案

这是OSX上的一个已知问题,原因是bsdtar(与OSX一起提供)与gnutar(码头工人期望的)之间不兼容.

This is a known issue on OSX due to incompatibilities between bsdtar (that ships with OSX) and gnutar (what docker is expecting).

只需通过确保路径上的gnutar作为"tar"可用即可对其进行修复.在OSX中,可以使用

It can be fixed simply by ensuring that gnutar is available on the path as "tar". In OSX, this can be accomplished with

brew install gnu-tar --with-default-names

这篇关于建立对等节点时出错:"bzip2数据无效";在goshim.tar.bz2中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆