安装web.go时出现错误。

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

Installing web.go errors

问题

我正在尝试安装web.go。我已经获取了源代码并运行了make命令,但是我遇到了以下错误:

g -o _go_.6 cookie.go fcgi.go request.go scgi.go servefile.go status.go web.go 
cookie.go:33: c.Version未定义(*http.Cookie类型没有Version字段或方法)
cookie.go:34: c.Version未定义(*http.Cookie类型没有Version字段或方法)
cookie.go:54: c.Comment未定义(*http.Cookie类型没有Comment字段或方法)
cookie.go:55: c.Comment未定义(*http.Cookie类型没有Comment字段或方法)
cookie.go:78: c.Version未定义(*http.Cookie类型没有Version字段或方法)
cookie.go:79: c.Version未定义(*http.Cookie类型没有Version字段或方法)
web.go:191: 未定义:reflect.FuncValue
web.go:248: 未定义:reflect.FuncValue
web.go:272: 未定义:reflect.FuncType
web.go:591: 未定义:reflect.FuncValue
cookie.go:79: 错误过多
make: *** [_go_.6] Error 1

有人知道问题可能是什么吗?我刚刚安装了go,所以应该是最新版本。6g -V显示6g版本为weekly.2011-04-04 8038。

谢谢,
Jon

英文:

I'm trying to install web.go. I got the source and ran make, but I'm getting these errors:

g -o _go_.6 cookie.go fcgi.go request.go scgi.go servefile.go status.go web.go 
cookie.go:33: c.Version undefined (type *http.Cookie has no field or method Version)
cookie.go:34: c.Version undefined (type *http.Cookie has no field or method Version)
cookie.go:54: c.Comment undefined (type *http.Cookie has no field or method Comment)
cookie.go:55: c.Comment undefined (type *http.Cookie has no field or method Comment)
cookie.go:78: c.Version undefined (type *http.Cookie has no field or method Version)
cookie.go:79: c.Version undefined (type *http.Cookie has no field or method Version)
web.go:191: undefined: reflect.FuncValue
web.go:248: undefined: reflect.FuncValue
web.go:272: undefined: reflect.FuncType
web.go:591: undefined: reflect.FuncValue
cookie.go:79: too many errors
make: *** [_go_.6] Error 1

Does anyone have any idea what the issue could be? I just install go, so it should be the most recent version. 6g -V gives 6g version weekly.2011-04-04 8038.

Thanks,
Jon

答案1

得分: 1

听起来你不小心检出了最新的周报,并引入了一些最近的反射变化。尝试运行以下命令:

hg checkout -r weekly

通过运行以下命令进行验证:

hg identify

输出应该是:

cd89452cfea3+ weekly/weekly.2011-04-04

然后再次运行 all.bash 重新构建所有内容,并尝试再次安装 web.go。

英文:

It sounds like you've inadvertantly checked out past the latest weekly and brought in some recent changes to reflection. Try running

hg checkout -r weekly

Verify by running

hg identify

which should output

cd89452cfea3+ weekly/weekly.2011-04-04

Then run all.bash again to rebuild everything and try goinstalling web.go again.

huangapple
  • 本文由 发表于 2011年4月9日 12:02:59
  • 转载请务必保留本文链接:https://go.coder-hub.com/5602789.html
匿名

发表评论

匿名网友

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

确定