外部链接crypto / rc4.a失败

时间:2017-12-13 00:19:17

标签: go

我遇到了编译代码的问题,这些代码本身很深,它试图链接到了加密/ rc4但返回时出现以下链接错误:

truncated object file: /usr/local/go/pkg/linux_amd64/crypto/rc4.a: EOF
crypto/rc4.NewCipher: call to external function
crypto/rc4.init: call to external function
crypto/tls.cipherRC4: relocation target crypto/rc4.NewCipher not defined
crypto/tls.cipherRC4: relocation target type.*crypto/rc4.Cipher not defined
crypto/tls.init: relocation target crypto/rc4.init not defined
crypto/tls.cipherRC4: undefined: "crypto/rc4.NewCipher"
crypto/tls.cipherRC4: undefined: "type.*crypto/rc4.Cipher"
crypto/tls.init: undefined: "crypto/rc4.init"

以下是我的变量:

GOPATH=/home/sfines/workspace/audit_system
GOROOT=/usr/local/go

我的Go版本是: go version go1.9.2 linux/amd64

我确保只安装了一个Go版本。我的智慧结束了。

1 个答案:

答案 0 :(得分:0)

这是一个包含丢失或部分文件的严重解压缩的Go安装。全新安装(没有错误)解决了这个问题。