dongzeao5047
2014-09-30 12:06
浏览 152
已采纳

无法使用go get安装Revel

My go env:

GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/xamenrax/code/golang"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.3.2/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.3.2/libexec/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common"
CXX="clang++"
CGO_ENABLED="1"

But where I'm doing go get github.com/robfig/revel there is no any output, this command just silently do nothing.

图片转代码服务由CSDN问答提供 功能建议

我的转到环境

  GOARCH = “AMD64” 
GOBIN = “” 
GOCHAR = “6” 
GOEXE = “” 
GOHOSTARCH = “AMD64” 
GOHOSTOS = “达尔文” 
GOOS = “达尔文” 
GOPATH =“/用户/ xamenrax /代码 /golang"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.3.2/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.3.2/libexec/pkg/tool/  darwin_amd64“ 
CC =” clang“ 
GOGCCFLAGS =”-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length = 0 -fno-common“ 
CXX =” clang ++“ 
CGO_ENABLED =” 1  “ 
   
 
 

但是在我正在做的去github.com/robfig/revel 的地方,没有任何输出,这个命令只是默默地 什么也不做。

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dss67853 2014-09-30 12:10
    已采纳

    It does nothing, but check the content of the $GOPATH/src/github.com/robfig/revel folder.

    If that folder exists, chances are the go get did download, compile and install your project.


    The workaround is to do it manually:

    • create a robfig folder in $GOPATH/src/github.com, and
    • in that robfig folder, try:

      git clone https://github.com/robfig/revel
      
    • Then in the revel folder, try a go build, then go install

    As commented below:

    go build command should be executed from $GOPATH/src/github.com/robfig/revel/revel

    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题