首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >找不到包构建go-ethereum

找不到包构建go-ethereum
EN

Stack Overflow用户
提问于 2019-11-25 10:54:45
回答 1查看 974关注 0票数 1

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

这就是我的环境

代码语言:javascript
复制
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

这就是错误

代码语言:javascript
复制
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

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

EN

回答 1

Stack Overflow用户

发布于 2019-12-06 11:45:13

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

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59024670

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档