dousu1900 2015-08-13 04:56
浏览 58
已采纳

错误:/linux_amd64/bytes.a:不是软件包文件

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条回答 默认 最新

  • dongshou6041 2015-08-14 05:39
    关注

    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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?