我使用以下命令安裝了 Go:brew install go現在安裝在/opt/homebrew/Cellar/go/1.19.2我比這樣設置變量:export GOROOT=/opt/homebrew/Cellar/go/1.19.2/bin/go/libexecexport GOPATH=$HOME/goexport PATH=$PATH:$GOPATH/bin當我嘗試時,go env我得到了這個:go: cannot find GOROOT directory: /opt/homebrew/Cellar/go/1.19.2/bin/go/libexec這里有什么錯誤?
通過 Brew 安裝時如何設置 GOROOT?
慕工程0101907
2023-02-21 19:03:54