duannengling4705 2018-05-28 07:13
浏览 1670

golang程序导入“ github.com/ethereum/go-ethereum/accounts/keystore”生成错误

GOOS=linux GOARCH=amd64 go build go build github.com/ethereum/go-ethereum/crypto/secp256k1: build constraints exclude allGo files in /Users/mac/Documents/project/src/github.com/ethereum/go-ethereum/crypto/secp256k1

  • 写回答

1条回答 默认 最新

  • duangu1033 2018-06-08 22:20
    关注

    Run the command with CGO_ENABLED=1 to enable the use of cgo when cross compiling.

    CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build
    
    评论

报告相同问题?