Go编程Linux amd64错误释放对象

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

Go programming linux amd64 wrong release object

问题

我想尝试一下谷歌的Go语言。

我已经按照文档中的说明正确安装了一切。
但是当我尝试编译时,我总是得到类似于以下的输出:


$ 6g main.go

main.go:3: import /home/manbear/gosource/pkg/linux_amd64/fmt.a: object is [linux amd64 weekly.2011-08-17 9569] expected [linux amd64 release.r59 9199+]


之前我有类似于[linux amd64 release.r56 89**]的东西,我试图获取正确的版本,但是似乎在这个任务上我没有成功。

希望能得到一些建议 Go编程Linux amd64错误释放对象

谢谢

英文:

I wanted to try-out go language from Google.

I've installed everything correctly like the doc said.
But when I try to compile I always have an output similar to this:


$ 6g main.go

main.go:3: import /home/manbear/gosource/pkg/linux_amd64/fmt.a: object is [linux amd64 weekly.2011-08-17 9569] expected [linux amd64 release.r59 9199+]


Before I had something like [linux amd64 release.r56 89** ], I tried to get the good release, but I don't seem to succeed in this quest.

Some advices would be appreciated Go编程Linux amd64错误释放对象

Thanks

答案1

得分: 2

我已经找到了问题。

我尝试了“hg update release”,但问题没有解决的原因是因为之前我尝试修复发布版本时,我下载并安装了这个:“golang_59-0~9199~oneiric1_amd64.deb”在我的Natty Ubuntu上。

我没有注意到它是为下一个版本的Ubuntu(oneiric)准备的[尽管它安装得很顺利]。

当我在synaptic中注意到它并完全删除它后,重新编译golang本身,现在一切都正常了 Go编程Linux amd64错误释放对象

有趣的是,在synaptic存储库中有一个“golang 59-0~9199-natty1”的软件包可用于Natty。我没有安装它,因为我遵循了Linux发行版的通用指令。但我猜可以跳过编译语言本身,只需使用apt-get install安装软件包。

英文:

I have found the problem.

I did try the "hg update release" but the problem why it did not fix the problem is because when I tried to fixed the release version previously; I had downloaded and installed on my Natty Ubuntu this:"golang_59-0~9199~oneiric1_amd64.deb".

I did not notice that it was for the next version of ubuntu (oneiric)

.

When I've noticed it in synaptic and delete it completly, recompile golang itself and everything is working now Go编程Linux amd64错误释放对象

An interesting fact, there is a package of "golang 59-0~9199-natty1" for Natty in the synaptic repository. I did not installed it since I've followed the general instruction for linux distributions. But I guess that it's possible to skip the compilation of the language itself and just install the package with apt-get install.

答案2

得分: 0

看起来你编译的是最新的每周开发版本,而不是发布版本。你在编译之前运行了以下命令吗:

hg update release

在编译之前运行这个命令(我指的是编译Go本身,而不是你的程序),我认为这应该可以解决问题。

英文:

It looks like you have compiled the latest weekly development build instead of the release version. Did you run the command:

hg update release

Before compiling (compiling Go itself I mean not your program) I think that should fix it for you.

答案3

得分: 0

要构建最新版本的Go,请按照以下步骤操作:

$ cd $GOROOT/src
$ hg pull
$ hg update release
$ ./all.bash
英文:

To build the latest release of Go:

$ cd $GOROOT/src
$ hg pull
$ hg update release
$ ./all.bash

huangapple
  • 本文由 发表于 2011年8月29日 19:42:44
  • 转载请务必保留本文链接:https://go.coder-hub.com/7229611.html
匿名

发表评论

匿名网友

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

确定