我正在尝试安装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 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
有谁知道问题可能是什么?我只是安装go,所以它应该是最新版本。 6g -V每周给出6g版本.2011-04-04 8038。
谢谢, 乔恩
答案 0 :(得分:1)
听起来你已经无意中检查了最新的每周一次并带来了最近的反思变化。尝试运行
hg checkout -r weekly
通过运行验证
hg identify
应该输出
cd89452cfea3+ weekly/weekly.2011-04-04
然后再次运行all.bash以重建所有内容并尝试再次安装web.go。