【问题标题】:Error using Homebrew to install go projects使用 Homebrew 安装 go 项目时出错
【发布时间】:2014-12-17 02:22:36
【问题描述】:

现在我尝试使用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
...

【问题讨论】:

    标签: macos go homebrew


    【解决方案1】:

    很抱歉打扰您。它在几分钟后工作。也许这是 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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-11-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-24
      • 2021-07-15
      • 2021-07-17
      相关资源
      最近更新 更多