influxdb-gateway icon indicating copy to clipboard operation
influxdb-gateway copied to clipboard

make error

Open huzhuo opened this issue 7 years ago • 4 comments

我在CentOS 7上make的时候,出错了,这个我系统的版本信息: ➜ influxdb-gateway git:(master) lsb_release LSB Version: :core-4.1-amd64:core-4.1-noarch ➜ influxdb-gateway git:(master) go version go version go1.9.2 linux/amd64

下面是执行make时的日志 ➜ influxdb-gateway git:(master) ls gateway Godeps main.go Makefile readme.md ➜ influxdb-gateway git:(master) make b CGO_ENABLED=0 go build -o bin/influxdb-gateway main.go

github.com/pingliu/influxdb-gateway/gateway

../../gopath/src/github.com/pingliu/influxdb-gateway/gateway/gateway.go:56:19: cannot use g.PointsWriter (type interface { WritePoints(string, string, models.ConsistencyLevel, []models.Point) error }) as type interface { WritePointsPrivileged(string, string, models.ConsistencyLevel, []models.Point) error } in assignment: interface { WritePoints(string, string, models.ConsistencyLevel, []models.Point) error } does not implement interface { WritePointsPrivileged(string, string, models.ConsistencyLevel, []models.Point) error } (missing WritePointsPrivileged method) ../../gopath/src/github.com/pingliu/influxdb-gateway/gateway/gateway.go:58:13: cannot use g.Logger (type zap.Logger) as type *zap.Logger in assignment make: *** [b] Error 2

huzhuo avatar Dec 16 '17 01:12 huzhuo

这个是zap对应的版本不对

pingliu avatar Mar 09 '18 11:03 pingliu

那应该使用什么版本?

409409 avatar May 02 '18 06:05 409409

readme更新了,请参考readme编译。

pingliu avatar May 07 '18 03:05 pingliu

您好,作者。我请问下,这个gateway的API是如何提供的呢,比如我写进gateway,如何写?

lhl-1983 avatar Mar 27 '20 01:03 lhl-1983