dongwen1909 2016-11-05 23:13 采纳率: 0%
浏览 101
已采纳

无法获取GoLang oracle软件包

I am completely new to GoLang, so chances are I messed up my setup.

Here is what I have :

echo $GOPATH
/Users/name/Documents/Developer/Go_Workspace

This one worked.

name$ go get -v golang.org/x/tools/cmd/oracle

It created 2 subfolders inside the Go_Workspace --> src, bin , pkg.

Then when I try :

go get -u 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:
    /usr/local/go/src/golang.org/x/tools/cmd/oracle (from $GOROOT)
    /Users/name/Documents/Developer/Go_Workspace/src/golang.org/x/tools/cmd/oracle (from $GOPATH)

When enable -v I see :

Fetching https://golang.org/x/tools/cmd/oracle?go-get=1
Parsing meta tags from https://golang.org/x/tools/cmd/oracle?go-get=1 (status code 200)
get "golang.org/x/tools/cmd/oracle": found meta tag main.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at https://golang.org/x/tools/cmd/oracle?go-get=1
get "golang.org/x/tools/cmd/oracle": verifying non-authoritative meta tag
Fetching https://golang.org/x/tools?go-get=1
Parsing meta tags from https://golang.org/x/tools?go-get=1 (status code 200)
golang.org/x/tools (download)
package golang.org/x/tools/cmd/oracle: cannot find package "golang.org/x/tools/cmd/oracle" in any of:
    /usr/local/go/src/golang.org/x/tools/cmd/oracle (from $GOROOT)
    /Users/name/Documents/Developer/Go_Workspace/src/golang.org/x/tools/cmd/oracle (from $GOPATH)

Here is my .bash_profile

1 PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin
  2 export GOPATH=$HOME/Documents/Developer/Go_Workspace
  3 export PATH=$PATH:/usr/local/go/bin
  4 export PATH=$PATH:$GOPATH/bin

Can you help me with this? What did I mess up?

I am running on bash terminal on a MacOS.

  • 写回答

1条回答 默认 最新

  • dongqin1075 2016-11-06 00:45
    关注

    You are trying to install a deprecated library. oracle has been superseded by guru and was deleted on 1 oct 2016.

    https://golang.org/s/using-guru

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
  • ¥15 如何用Python爬取各高校教师公开的教育和工作经历
  • ¥15 TLE9879QXA40 电机驱动
  • ¥20 对于工程问题的非线性数学模型进行线性化
  • ¥15 Mirare PLUS 进行密钥认证?(详解)
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证
  • ¥20 想用ollama做一个自己的AI数据库
  • ¥15 关于qualoth编辑及缝合服装领子的问题解决方案探寻
  • ¥15 请问怎么才能复现这样的图呀