无法找到Go Oracle?

huangapple go评论76阅读模式
英文:

Go Oracle not found?

问题

在使用Sublime设置我的新Go环境时,我想使用以下命令安装Oracle工具:

go get golang.org/x/tools/cmd/oracle
  package golang.org/x/tools/cmd/oracle: cannot find package "golang.org/x/tools/cmd/oracle" in any of:
      C:\Go\src\golang.org\x\tools\cmd\oracle (from $GOROOT)
      C:\Users\User\Go\src\golang.org\x\tools\cmd\oracle (from $GOPATH)

我在这里做错了什么?

英文:

While setting up my new Go with Sublime I wanted to install Oracle tools with the following command

go get golang.org/x/tools/cmd/oracle
  package golang.org/x/tools/cmd/oracle: cannot find package "golang.org/x/tools/cmd/oracle" in any of:
      C:\Go\src\golang.org\x\tools\cmd\oracle (from $GOROOT)
      C:\Users\User\Go\src\golang.org\x\tools\cmd\oracle (from $GOPATH)

What am I doing wrong here?

答案1

得分: 2

如果你查看包链接,你会发现它会抛出“未找到”错误(包链接在这里)。

根据这个链接,似乎该包已被重命名为"guru",这是正确的安装方式:

go get golang.org/x/tools/cmd/guru

英文:

If you check the package link you'll see it throws NOT FOUND (package link here)

Based on this, it seems that the package was renamed to guru, this is the correct installation:

go get golang.org/x/tools/cmd/guru

答案2

得分: 0

对我有效的命令是:

go get golang.org/x/tools/cmd/guru

(与之前相同,只是工具的新名称为guru,而不是oracle)

英文:

The command that works for me is:

go get golang.org/x/tools/cmd/guru

(the same as before, just with the new name of the tool - guru, instead of oracle)

答案3

得分: 0

如果 %GOBIN% // $GOBIN 在你的路径中,这个命令将会是魔法:

go get golang.org/x/tools/...
英文:

if %GOBIN% // $GOBIN is in your path, This command will be magic:

go get golang.org/x/tools/...

huangapple
  • 本文由 发表于 2017年2月18日 17:23:33
  • 转载请务必保留本文链接:https://go.coder-hub.com/42313358.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定