dongzg2006
2017-02-18 09:23
浏览 59
已采纳

找不到Oracle吗?

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?

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

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

 去获取golang.org/x/tools/cmd/oracle
软件包golang.org/x/tools/cmd/oracle:找不到软件包“ golang.org/x/tools/cmd/  oracle”:
 C:\ Go \ src \ golang.org \ x \ tools \ cmd \ oracle(来自$ GOROOT)
 C:\ Users \ User \ Go \ src \ golang.org \ x \ 工具\ cmd \ oracle(来自$ GOPATH)
   
 
 

我在这里做什么错了?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

3条回答 默认 最新

  • dongzha2525 2017-02-18 09:58
    已采纳

    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

    点赞 评论
  • dsrnwngq411594 2017-02-19 15:33

    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)

    点赞 评论
  • dongzhi2332 2018-03-23 16:00

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

    go get golang.org/x/tools/...
    
    点赞 评论

相关推荐 更多相似问题