我使用以下命令安装了 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这里有什么错误?
- 1 回答
- 0 关注
- 299 浏览
添加回答
举报
0/150
提交
取消
