heidsoft / cloud-bigdata-book

write book
56 stars 33 forks source link

区块链 #32

Open heidsoft opened 6 years ago

heidsoft commented 6 years ago

fabric 编译报错处理

Step 12/12 : RUN chmod a+rw -R /opt/gopath
 ---> Running in d486d902f24b
 ---> 0705672ca98d
Removing intermediate container d486d902f24b
Successfully built 0705672ca98d
Successfully tagged hyperledger/fabric-baseimage:latest
Building docker src-image
docker build -t hyperledger/fabric-src:latest build/image/src
Sending build context to Docker daemon  20.43MB
Step 1/2 : FROM hyperledger/fabric-baseimage:latest
 ---> 0705672ca98d
Step 2/2 : ADD gopath.tar.bz2 $GOPATH/src/github.com/hyperledger/fabric
Error processing tar file(bzip2 data invalid: bad magic value in continuation file):
make: *** [build/image/src/.dummy] Error 1

➜  fabric git:(v0.5-developer-preview) brew install gnu-tar --with-default-names
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (caskroom/cask).

Warning: gnu-tar 1.29_1 is already installed

链接参考

error-building-peer-bzip2-data-invalid