我正在尝试安装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。
谢谢,乔恩
发布于 2011-04-09 12:44:45
这听起来像是你无意中签出了最新的一周,并给反射带来了一些最近的变化。尝试运行
hg checkout -r weekly通过运行以下命令验证
hg identify哪一项应该输出
cd89452cfea3+ weekly/weekly.2011-04-04然后再次运行all.bash以重新构建所有内容,并再次尝试安装web.go。
https://stackoverflow.com/questions/5602789
复制相似问题