Go-Ethereum

在 Raspberry pi 錯誤上安裝乙太坊節點

  • September 25, 2018

我一直在遵循本指南的步驟:http ://raspnode.com/diyEthereumGeth.html

但我卡在“make geth”命令上,我的 RPI 輸出此錯誤:

build/env.sh go install -v -ldflags '-X main.gitCommit c541b38fb36587d23c60f5e2f2b9b3c8700ec489' ./cmd/geth
github.com/ethereum/go-ethereum/core/types
# github.com/ethereum/go-ethereum/core/types
build/_workspace/src/github.com/ethereum/go-ethereum/core/types/transaction.go:39: undefined: atomic.Value
build/_workspace/src/github.com/ethereum/go-ethereum/core/types/transaction.go:40: undefined: atomic.Value
build/_workspace/src/github.com/ethereum/go-ethereum/core/types/transaction.go:41: undefined: atomic.Value
Makefile:17: recipe for target 'geth' failed
make: *** [geth] Error 2

有什麼問題?!

編輯

在使用更新的 git repo 之後,我得到的錯誤是:

build/_workspace/src/github.com/ethereum/go-ethereum/internal/build/azure.go:23:2: cannot find package "github.com/Azure/azure-sdk-for-go/storage" in any of:
       /usr/lib/go/src/pkg/github.com/Azure/azure-sdk-for-go/storage (from $GOROOT)
       /home/pi/bin/go-ethereum/build/_workspace/src/github.com/Azure/azure-sdk-for-go/storage (from $GOPATH)
build/_workspace/src/github.com/ethereum/go-ethereum/internal/build/pgp.go:27:2: cannot find package "golang.org/x/crypto/openpgp" in any of:
       /usr/lib/go/src/pkg/golang.org/x/crypto/openpgp (from $GOROOT)
       /home/pi/bin/go-ethereum/build/_workspace/src/golang.org/x/crypto/openpgp (from $GOPATH)
Makefile:15: recipe for target 'geth' failed
make: *** [geth] Error 1

注意:我認為通過刪除 elliptic.P224 用法,在更新的 geth 版本中解決了這個問題,因此您使用的是舊版本。我認為您關注的 Tuto 沒有更新。我建議您使用以下方法重複這些步驟:

git clone -b release/1.5 https://github.com/ethereum/go-ethereum.git

舊版本的解決方案: 我有同樣的問題,我按照以下步驟解決了它(基於官方 github repos 上提出的問題):

1-首先嘗試一個make clean.

2-嘗試安裝:brew install gmpsudo apt-get install libgmp-dev

3-從文件 crypto/ecies/asn1.go 和 crypto/ecies/ecies_test.go 中刪除所有對 elliptic.P224 的引用

引用自:https://ethereum.stackexchange.com/questions/11909