我正在嘗試安裝Go語言,但最后出現(xiàn)了以下錯誤(由于行很多,我不會全部復(fù)制):$>=========== fixedbugs/bug359.go > BUG: errchk: fixedbugs/bug359.go:19: missing expected error: '"unexported field"' > errchk: fixedbugs/bug359.go:25: missing expected error: '"a redeclared"' > errchk: unmatched error messages: > ================================================== > fixedbugs/bug359.go:12: import /home/anju/go/pkg/linux_386/container/list.a: object is [linux 386 release.r56 9441] expected [linux 386 release.r60.3 10088+] > ================================================== 0 known bugs; 78 unexpected bugs; test output differs FAILED我已按照說明進(jìn)行操作,但始終得到相同的結(jié)果。我用接下來的行編輯了.bashrc:export GOROOT=$HOME/goexport GOARCH=386export GOOS=linuxexport GOBIN=$HOME/binexport PATH=$GOBIN:$PATH但是當(dāng)我執(zhí)行命令uname -a時,我得到了這些:$Linux Anju 2.6.32-35-generic #78-Ubuntu SMP Tue Oct 11 15:27:15 UTC 2011 i686 GNU/Linux.因此,GOARCH = 386沒關(guān)系,或者我應(yīng)該使用其他值嗎?感謝您的關(guān)注,對不起,我的英語不好。
2 回答

白豬掌柜的
TA貢獻(xiàn)1893條經(jīng)驗 獲得超10個贊
的標(biāo)準(zhǔn)默認(rèn)$GOBIN
值為:
export GOBIN=$GOROOT/bin
您可能已經(jīng)安裝了多個版本的Go。例如[linux 386 release.r56 9441]
和[linux 386 release.r60.3 10088+]
。因此,您可能有多個Go二進(jìn)制文件版本,例如8g
,$HOME/bin
和$GOROOT/bin
($HOME/go/bin
)都有。
- 2 回答
- 0 關(guān)注
- 214 瀏覽
添加回答
舉報
0/150
提交
取消