编译因与pkg / tsdb / mysql / mysql.go相关的错误而停止:
~/go/src/github.com/grafana/grafana olaf$ go run build.go setup
Version: 4.3.0-pre1, Linux Version: 4.3.0, Package Iteration: 1493673134pre1
go get -v github.com/kardianos/govendor
go install -v ./pkg/cmd/grafana-server
github.com/grafana/grafana/pkg/api
github.com/grafana/grafana/pkg/tsdb/mysql
# github.com/grafana/grafana/pkg/tsdb/mysql
pkg/tsdb/mysql/mysql.go:156: rows.ColumnTypes undefined (type *core.Rows has no field or method ColumnTypes)
pkg/tsdb/mysql/mysql.go:182: undefined: sql.ColumnType
# github.com/grafana/grafana/pkg/api
pkg/api/http_server.go:59: undefined: http.ErrServerClosed
pkg/api/http_server.go:65: undefined: http.ErrServerClosed
pkg/api/http_server.go:90: hs.httpSrv.Shutdown undefined (type *http.Server has no field or method Shutdown)
exit status 2
exit status 1
有关如何重现此内容的任何线索。 (它在我的机器上有效:笑脸:)
抱歉,我以为我附加了uname命令。
我正在使用OmniOS / illumos r151020(当前稳定)。
转到1.7.1。
Go与influxdb一起使用时,编译环境看起来不错。
我以前从未达到过这一点,因为首先Grafana依赖无法编译的govendor。 解决了这一问题,我不得不手动更新log15(随Grafana一起提供,但很旧)。
在寻求Grafana / illumos编译时,我会以有限的知识逐步进行。
对于我们用于新mysql数据源的mysql列类型功能,Grafana需要Go 1.8.1->。
最有用的评论
对于我们用于新mysql数据源的mysql列类型功能,Grafana需要Go 1.8.1->。