duanchun1909 2017-02-15 08:04
浏览 787
已采纳

Windows上的InfluxDB安装问题

In reference to How to install InfluxDB in Windows

I've followed all the steps upto:

go get -u -f ./...

But am facing an issue as below

# github.com/influxdata/influxdb/services/precreator
services\precreator\service.go:32: undefined: zap.NullEncoder
services\precreator\service.go:32: cannot use zap.New(zap.NullEncoder()) (type *zap.Logger) as type zap.Logger in field value
services\precreator\service.go:40: cannot use log.With(zap.String("service", "shard-precreation")) (type *zap.Logger) as type zap.Logger in assignment

# github.com/influxdata/influxdb/services/admin
services\admin\service.go:36: undefined: zap.NullEncoder
services\admin\service.go:36: cannot use zap.New(zap.NullEncoder()) (type *zap.Logger) as type zap.Logger in field value
services\admin\service.go:85: cannot use log.With(zap.String("service", "admin")) (type *zap.Logger) as type zap.Logger in assignment
# github.com/influxdata/influxdb/influxql
influxql\query_executor.go:184: undefined: zap.NullEncoder
influxql\query_executor.go:184: cannot use zap.New(zap.NullEncoder()) (type *zap.Logger) as type zap.Logger in field value
influxql\query_executor.go:219: cannot use log.With(zap.String("service", "query")) (type *zap.Logger) as type zap.Logger in assignment
influxql\task_manager.go:45: undefined: zap.NullEncoder
influxql\task_manager.go:45: cannot use zap.New(zap.NullEncoder()) (type *zap.Logger) as type zap.Logger in field value

How can I fix this?

  • 写回答

2条回答 默认 最新

  • doucha5080 2017-02-18 07:46
    关注

    Solution Refer to https://github.com/influxdata/influxdb/issues/8016

    Go version - 1.7.5 Git version - 2.11.1 Hg version - 3.7.1

    cd c:\go
    mkdir projects
    set "GOPATH=C:\Go\projects"
    cd %gopath%
    git config --global http.proxy http://user:enc_pw@IP:port
    set https_proxy=https://user:enc_pw@IP:port
    go get github.com/sparrc/gdm
    go get github.com/influxdata/influxdb
    cd src\github.com\influxdata\influxdb
    go get -v -u -f ./...
    C:\Go\projects\bin\gdm restore
    go install ./...
    go build ./...
    

    This should help to effectively solve all the problems and you may continue with original link

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)
编辑
预览

报告相同问题?

悬赏问题

  • ¥15 PADS Logic 原理图
  • ¥15 PADS Logic 图标
  • ¥15 电脑和power bi环境都是英文如何将日期层次结构转换成英文
  • ¥20 气象站点数据求取中~
  • ¥15 如何获取APP内弹出的网址链接
  • ¥15 wifi 图标不见了 不知道怎么办 上不了网 变成小地球了
手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部