-4
林試圖安裝一個軟件包,但得到即使我的根目錄正確設置下面的問題。去:找不到GOROOT目錄:在/ usr/bin中/去
[email protected]:~/ba/docker-lvm-plugin$ which go
/usr/bin/go
[email protected]:~/ba/docker-lvm-plugin$ echo $GOROOT
/usr/bin/go
[email protected]:~/ba/docker-lvm-plugin$ go get github.com/Sirupsen/logrus
go: cannot find GOROOT directory: /usr/bin/go
不要設置GOROOT。 – Volker
就像在[你的另一個問題,幾分鐘前(https://stackoverflow.com/questions/44952719/go-installing-package-usr-bin-go-not-a-directory),這是錯誤的, [答案是相同](https://stackoverflow.com/questions/7970390/what-should-be-the-values-of-gopath-and-goroot)。 – Adrian
[應該是什麼GOPATH和GOROOT的值是多少?(https://stackoverflow.com/questions/7970390/what-should-be-the-values-of-gopath-and-goroot) – Adrian