kafka-offset-exporter icon indicating copy to clipboard operation
kafka-offset-exporter copied to clipboard

build error

Open chaplinthink opened this issue 5 years ago • 0 comments

Hi, when i clone the code and build, it has the error,how i solve it?

kafka-offset-exporter-master]# go  build
kafka.go:11:2: cannot find package "github.com/Shopify/sarama" in any of:
	/usr/local/go/src/github.com/Shopify/sarama (from $GOROOT)
	/root/go/src/github.com/Shopify/sarama (from $GOPATH)
kafka.go:12:2: cannot find package "github.com/Sirupsen/logrus" in any of:
	/usr/local/go/src/github.com/Sirupsen/logrus (from $GOROOT)
	/root/go/src/github.com/Sirupsen/logrus (from $GOPATH)
kafka.go:13:2: cannot find package "github.com/prometheus/client_golang/prometheus" in any of:
	/usr/local/go/src/github.com/prometheus/client_golang/prometheus (from $GOROOT)
	/root/go/src/github.com/prometheus/client_golang/prometheus (from $GOPATH)
metrics.go:13:2: cannot find package "github.com/prometheus/client_golang/prometheus/promhttp" in any of:
	/usr/local/go/src/github.com/prometheus/client_golang/prometheus/promhttp (from $GOROOT)
	/root/go/src/github.com/prometheus/client_golang/prometheus/promhttp (from $GOPATH)

chaplinthink avatar Jul 09 '19 09:07 chaplinthink