无法安装Go包go.net/html。

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

Cannot install go package go.net/html

问题

我在工作中使用go.net/html库,一切都正常。但是当我尝试在我的笔记本电脑上安装这个包时,出现了一个错误:

termith@termith-laptop:~/go$ go get code.google.com/p/go.net/html

code.google.com/p/go.net/html

src/code.google.com/p/go.net/html/token.go:304: undefined: io.ErrNoProgress

我的系统信息:

termith@termith-laptop:~/go$ uname -a
Linux termith-laptop 3.2.0-51-generic-pae #77-Ubuntu SMP Wed Jul 24 20:40:32 UTC 2013
i686 i686 i386 GNU/Linux

提前感谢!

英文:

I use go.net/html in my project on work and everything is ok. But when I try to install this package on my laptop I get a error:

termith@termith-laptop:~/go$ go get code.google.com/p/go.net/html
# code.google.com/p/go.net/html
src/code.google.com/p/go.net/html/token.go:304: undefined: io.ErrNoProgress

My system:

termith@termith-laptop:~/go$ uname -a
Linux termith-laptop 3.2.0-51-generic-pae #77-Ubuntu SMP Wed Jul 24 20:40:32 UTC 2013
i686 i686 i386 GNU/Linux

Thanks in advance!

答案1

得分: 2

你很可能使用的是过时的 Go 版本(例如,请参考这个 GitHub 问题)。

检查一下 go version 的输出,并在必要时进行更新。

英文:

You most likely have an outdated Go version (see for example this GitHub issue).

Check the output of go version and update if necessary.

答案2

得分: 1

警告:go.net包的URL将在Go 1.4中更改:

code.google.com/p/go.net => golang.org/x/net

如果您再次更新您的go版本(到1.4,发布日期为2014年11月9日),您可能需要更改导入路径。

请参阅“Go 1.4子存储库重命名”。

英文:

Beware: the go.net package url will change with Go 1.4:

code.google.com/p/go.net => golang.org/x/net

If you update (again) your go version (to 1.4, once released, November 9th, 2014), you might have to change that import path.

See "Go 1.4 subrepo renaming".

huangapple
  • 本文由 发表于 2014年6月26日 22:32:22
  • 转载请务必保留本文链接:https://go.coder-hub.com/24433268.html
匿名

发表评论

匿名网友

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

确定