Installing Golang Oracle but getting "error: undefined reference to 'golang.org_x_tools_container_intsets.popcount'"

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

Installing Golang Oracle but getting "error: undefined reference to 'golang.org_x_tools_container_intsets.popcount'"

问题

我尝试在我的Ubuntu机器上使用以下命令安装Oracle:

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

但是我遇到了以下错误:

#golang.org/x/tools/cmd/oracle
/home/rr/Proj/go/src/golang.org/x/tools/container/intsets/sparse.go:140: 错误: 对 'golang.org_x_tools_container_intsets.popcount' 的引用未定义
/home/rr/Proj/go/src/golang.org/x/tools/container/intsets/util.go:51: 错误: 对 'golang.org_x_tools_container_intsets.popcount' 的引用未定义
collect2: 错误: ld 返回了 1 个退出状态

我的Go版本是

go version xgcc (Ubuntu 4.9.1-0ubuntu1) 4.9.1 linux/amd64

还有其他人遇到相同的问题吗?

英文:

I tried installing Oracle on my Ubuntu machine using the following cmd:
>go get golang.org/x/tools/cmd/oracle

but I am getting the following error:

> #golang.org/x/tools/cmd/oracle
/home/rr/Proj/go/src/golang.org/x/tools/container/intsets/sparse.go:140: error: undefined reference to 'golang.org_x_tools_container_intsets.popcount'
/home/rr/Proj/go/src/golang.org/x/tools/container/intsets/util.go:51: error: undefined reference to 'golang.org_x_tools_container_intsets.popcount'
collect2: error: ld returned 1 exit status

My Go version is
> go version xgcc (Ubuntu 4.9.1-0ubuntu1) 4.9.1 linux/amd64

Anyone else facing the same issue?

答案1

得分: 0

似乎我们需要移除通过apt-get安装的gcc-go,并从网站https://golang.org/安装Go。这将修复该问题。

英文:

Seems like we need to remove gcc-go(installed using apt-get) and install Go from the website https://golang.org/ . This fixes the issue.

huangapple
  • 本文由 发表于 2015年11月28日 02:38:56
  • 转载请务必保留本文链接:https://go.coder-hub.com/33963169.html
匿名

发表评论

匿名网友

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

确定