找不到用于构建以太坊的软件包

时间:2019-11-25 02:54:45

标签: blockchain ethereum go-ethereum

我是golang的新手,正在编译go-ethereum。但这给了我一些错误,我在谷歌搜索中找不到解决方案。这很奇怪,因为似乎只有我有这个问题。

这是我的环境

export GOROOT=/usr/local/go
export GOPATH=/home/sam/go
export PATH=$PATH:/usr/local/go/bin

sam@ubuntu:~/work/blockchain/go-ethereum$ go version
go version go1.12.7 linux/amd64

这是错误

sam@ubuntu:~/work/blockchain/go-ethereum$ make all
build/env.sh go run build/ci.go install
internal/build/azure.go:25:2: cannot find package "github.com/Azure/azure-storage-blob-go/azblob" in any of:
    /usr/local/go/src/github.com/Azure/azure-storage-blob-go/azblob (from $GOROOT)
    /home/sam/work/blockchain/go-ethereum/build/_workspace/src/github.com/Azure/azure-storage-blob-go/azblob (from $GOPATH)
build/ci.go:61:2: cannot find package "github.com/cespare/cp" in any of:
    /usr/local/go/src/github.com/cespare/cp (from $GOROOT)
    /home/sam/work/blockchain/go-ethereum/build/_workspace/src/github.com/cespare/cp (from $GOPATH)
internal/build/pgp.go:27:2: cannot find package "golang.org/x/crypto/openpgp" in any of:
    /usr/local/go/src/golang.org/x/crypto/openpgp (from $GOROOT)
    /home/sam/work/blockchain/go-ethereum/build/_workspace/src/golang.org/x/crypto/openpgp (from $GOPATH)
common/types.go:31:2: cannot find package "golang.org/x/crypto/sha3" in any of:
    /usr/local/go/src/golang.org/x/crypto/sha3 (from $GOROOT)
    /home/sam/work/blockchain/go-ethereum/build/_workspace/src/golang.org/x/crypto/sha3 (from $GOPATH)
Makefile:20: recipe for target 'all' failed
make: *** [all] Error 1

这里很奇怪,因为我遵循文档中的步骤。感谢您的帮助。

1 个答案:

答案 0 :(得分:1)

此问题已在golang 1.13及更高版本中得到解决。