Closed MxBird closed 11 years ago
这个是没有设置$GOPATH
cat $GOPATH
cat: /Users/Ray/Workspace/sandbox/go: Is a directory
你的GOPATH指向了GOROOT,这是不对的
你的GOPATH指向了GOROOT,这是不对的 不是这样的吧 : /usr/local/go 是goroot /Users/Ray/Workspace/sandbox/go这个是gopath 明显不是一个地址撒 。。。。 最终搞整了下 还是弄通过了。。
额,那你咋搞定的?
cat $GOROOT
cat: /usr/local/go: Is a directory
cat $GOPATH
cat: /Users/Ray/Workspace/sandbox/go: Is a directory
go get -u github.com/wendal/gor 执行成功 然后执行go install github.com/wendal/gor/gor 报错 go install github.com/wendal/gor/gor
go install github.com/wendal/gor/gor: open /usr/local/go/bin/gor: permission denied
以为是权限问题 然后添加sudo执行报错为: sudo go install github.com/wendal/gor/gor
can't load package: package github.com/wendal/gor/gor: cannot find package "github.com/wendal/gor/gor" in any of: /usr/local/go/src/pkg/github.com/wendal/gor/gor (from $GOROOT) ($GOPATH not set)