fabric進行make all的時候出現錯誤

2021-10-08 10:28:00 字數 2066 閱讀 5481

現在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

3、再執行乙個git clone

4、再建立乙個資料夾:mkdir -p $gopath/src/github.com/maxbrunsfeld/

5、執行git clone

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`

解決方案:

再次執行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、尚未解決

Macos下進行Fabric的環境搭建

在macos下安裝好go環境和docker後,接下來就可以進行hyperledger fabric的環境搭建。一 建立資料夾 進入剛剛建立的資料夾內 二 從github上拉取fabric的原始碼 git clone cd fabric 本文使用的是v2.0.0版本的fabric,需要以下命令檢出fa...

Fabric學習 Fabric整體專案結構介紹

參考版本較低,建議去看高版本手冊。bccsp 提供了加密標準以及演算法的實現,為整個專案提供統一的加密 簽名 驗籤服務。common common模組提供了通用功能以及一些通用的 實現,包括日誌 錯誤 工具包等,主要包括專案全域性的功能性 core core模組為fabric專案的核心 模組,其中包...

Fabric開發(四)Fabric原始碼賞析

前面幾章,我們從網路搭建,系統編譯,執行乙個demo的角度,體驗了facbic系統,我們從整體認識了fabric。在公鏈領域,有btc,eth,eos等優秀的開源專案,我們對這些原始碼都有閱讀,在聯盟鏈領域,比較突出的就是ibm發起的fabric,fabric做為聯盟鏈,要求有准入機制,在新的版本裡...