gpt4 book ai didi

macos - 使用 Homebrew 安装 go 项目时出错

转载 作者:数据小太阳 更新时间:2023-10-29 03:37:43 27 4
gpt4 key购买 nike

现在我尝试使用 brew 安装任何 go 项目,但我得到同样的错误

➜ brew install etcd
==> Installing etcd dependency: go
==> Downloading https://storage.googleapis.com/golang/go1.4.src.tar.gz
Already downloaded: /Library/Caches/Homebrew/go-1.4.tar.gz
==> ./make.bash --no-clean
==> ./make.bash --no-clean
==> ./make.bash --no-clean
==> ./make.bash --no-clean
==> ./make.bash --no-clean
==> ./make.bash --no-clean
==> ./make.bash --no-clean
==> ./make.bash --no-clean
==> ./make.bash --no-clean
==> ./make.bash --no-clean
==> ./make.bash --no-clean
==> ./make.bash --no-clean
==> ./make.bash --no-clean
==> ./make.bash --no-clean
==> ./make.bash --no-clean
...

最佳答案

不好意思打扰了。它会在几分钟后工作。也许这是 go 1.4 的问题,但最终它起作用了。

==> ./make.bash --no-clean
==> ./make.bash --no-clean
==> Caveats
As of go 1.2, a valid GOPATH is required to use the `go get` command:
http://golang.org/doc/code.html#GOPATH

`go vet` and `go doc` are now part of the go.tools sub repo:
http://golang.org/doc/go1.2#go_tools_godoc

To get `go vet` and `go doc` run:
go get golang.org/x/tools/cmd/vet
go get golang.org/x/tools/cmd/godoc

You may wish to add the GOROOT-based install location to your PATH:
export PATH=$PATH:/usr/local/opt/go/libexec/bin
==> Summary
🍺 /usr/local/Cellar/go/1.4: 7695 files, 1.5G, built in 9.5 minutes
==> Installing etcd
==> Downloading https://github.com/coreos/etcd/archive/v0.4.6.tar.gz

关于macos - 使用 Homebrew 安装 go 项目时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27517384/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com