当make peer时,它无法访问build / docker / gotools / bin / protoc-gen-go,所以我制作了gotools,但是失败了,这是日志:
mkdir -p build/bin
cd gotools && make install BINDIR=/root/gocode/bin
make[1]: Entering directory '/root/gocode/src/github.com/hyperledger/fabric/gotools'
make[2]: Entering directory '/root/gocode/src/github.com/hyperledger/fabric/gotools'
Building github.com/golang/lint/golint -> golint
package golang.org/x/tools/go/gcexportdata: unrecognized import path "golang.org/x/tools/go/gcexportdata" (https fetch: Get https://golang.org/x/tools/go/gcexportdata?go-get=1: net/http: TLS handshake timeout)
Makefile:47: recipe for target 'gotool.golint' failed
如何解决这个问题?请帮帮我,谢谢!
答案 0 :(得分:1)
尝试按照以下步骤操作:
#mkdir -p gotools/build/gopath/src/golang.org/x/
#cd gotools/build/gopath/src/golang.org/x/
#git clone https://github.com/golang/tools.git
#cd $GOPATH/src/github.com/hyperledger/fabric/
然后重新制作
#make gotools