英文:
Error: /linux_amd64/bytes.a: not a package file
问题
我正在尝试使用go get命令安装'vet'工具,但是遇到了以下错误:
root@ubuntu:~/docker# go get code.google.com/p/go.tools/cmd/vet
# code.google.com/p/go.tools/cmd/vet
../go/src/code.google.com/p/go.tools/cmd/vet/asmdecl.go:10: import /root/go/pkg/linux_amd64/bytes.a: not a package file
我尝试在互联网上找到解决方案,但没有找到有用的信息。你们能帮我找出可能导致这个问题的原因吗?谢谢。
英文:
I am trying to install 'vet' tool using go get, and I am getting this error:
root@ubuntu:~/docker# go get code.google.com/p/go.tools/cmd/vet
# code.google.com/p/go.tools/cmd/vet
../go/src/code.google.com/p/go.tools/cmd/vet/asmdecl.go:10: import /root/go/pkg/linux_amd64/bytes.a: not a package file
I tried to find the solution on internet, couldn't find anything helpful. Could you guys please help me figure out what could be causing this? TIA.
答案1
得分: 0
好的,问题是我使用的是go 1.2.1版本,我将其升级到1.4.2版本,现在一切都正常工作了。感谢@Ainar-G指出这一点。
英文:
Okay, so the problem was I was using go 1.2.1, I upgraded it to 1.4.2 and everything is working fine now. Thanks, @Ainar-G for pointing it out.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论