fabric进行make all的时候出现错误

现在github上git clone关于fabric的git文件,然后进入fabric目录,执行make all命令。出现错误如下:

在这里插入图片描述

可以看到其中出现两个错误:
1、gotools.mk:59: recipe for target 'gotool.counterfeiter' failed make[1]: *** [gotool.counterfeiter] Error 1
2、gotools.mk:64: recipe for target '/home/gopath/bin/counterfeiter' failed make: *** [/home/gopath/bin/counterfeiter] Error 2

原因:丢失go包导致的
解决方式:
1、创建$GOPATH/src/golang.org/x/文件夹mkdir -p $GOPATH/src/golang.org/x/
2、执行git clone https://github.com/golang/tools.git
3、再执行一个git clone https://github.com/golang/mod.git
4、再创建一个文件夹:mkdir -p $GOPATH/src/github.com/maxbrunsfeld/
5、执行git clone https://github.com/maxbrunsfeld/counterfeiter.git
6、执行go install ./counterfeiter

再次执行make all结果又出错:gotools.mk:59: recipe for target 'gotool.gocov' failed make[1]: *** [gotool.gocov] Error 1
在这里插入图片描述

原理和上面那个错误的解决方案一样:
解决方案如下:
1、直接执行(任意文件夹下都可以)go get github.com/axw/gocov/gocov

再次执行make all结果又又出错:gotools.mk:59: recipe for target 'gotool.mockery' failed make[1]: *** [gotool.mockery] Error 1
`

在这里插入图片描述

解决方案:
1、export GO111MODULE=on
2、export GOPROXY=https://goproxy.io
3、go get github.com/vektra/mockery/.../

再次执行make all结果又又出错:The Fabric metrics reference documentation is out of date. Please run './scripts/metrics_doc.sh generate' to update the documentation. Makefile:177: recipe for target 'check-metrics-doc' failed make: *** [check-metrics-doc] Error 1
`

在这里插入图片描述

解决方案:
1、尚未解决

猜你喜欢

转载自blog.csdn.net/i_want_study/article/details/107529552