Grafana: 编译与pkg / tsdb / mysql和pkg / api有关的问题

创建于 2017-05-01  ·  3评论  ·  资料来源: grafana/grafana

编译因与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
needs more info typbuild-packaging typquestion

最有用的评论

对于我们用于新mysql数据源的mysql列类型功能,Grafana需要Go 1.8.1->。

所有3条评论

有关如何重现此内容的任何线索。 (它在我的机器上有效:笑脸:)

  • 您正在运行什么操作系统?
  • 您正在运行最新的主机吗?
  • 以前有用吗?

抱歉,我以为我附加了uname命令。

我正在使用OmniOS / illumos r151020(当前稳定)。
转到1.7.1。

Go与influxdb一起使用时,编译环境看起来不错。
我以前从未达到过这一点,因为首先Grafana依赖无法编译的govendor。 解决了这一问题,我不得不手动更新log15(随Grafana一起提供,但很旧)。

在寻求Grafana / illumos编译时,我会以有限的知识逐步进行。

对于我们用于新mysql数据源的mysql列类型功能,Grafana需要Go 1.8.1->。

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

SATHVIKRAJU picture SATHVIKRAJU  ·  3评论

tcolgate picture tcolgate  ·  3评论

KlavsKlavsen picture KlavsKlavsen  ·  3评论

Azef1 picture Azef1  ·  3评论

tuxinaut picture tuxinaut  ·  3评论