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