首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >golang程序导入"github.com/ethereum/go-ethereum/accounts/keystore“构建错误

golang程序导入"github.com/ethereum/go-ethereum/accounts/keystore“构建错误
EN

Stack Overflow用户
提问于 2018-05-28 15:13:03
回答 1查看 448关注 0票数 -1

请找到我的golang规格书

  • GOOS=linux
  • GOARCH=amd64

在/Users/mac/Documents/project/src/github.com/ethereum/go-ethereum/crypto/secp256k1中,

go生成github.com/ethereum/go-ethereum/crypto/secp256k1:生成约束排除allGo文件

EN

回答 1

Stack Overflow用户

发布于 2018-06-09 06:20:39

将命令与CGO_ENABLED=1一起运行,以便在交叉编译时使用cgo。

代码语言:javascript
复制
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50560961

复制
相关文章

相似问题

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