我使用以下命令安装了 Go:
brew install go
现在安装在/opt/homebrew/Cellar/go/1.19.2
我比这样设置变量:
export GOROOT=/opt/homebrew/Cellar/go/1.19.2/bin/go/libexec
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
当我尝试时,go env我得到了这个:
go: cannot find GOROOT directory: /opt/homebrew/Cellar/go/1.19.2/bin/go/libexec
这里有什么错误?
慕工程0101907
呼如林
随时随地看视频慕课网APP
相关分类