Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bad compile #4660

Closed
gitchander opened this Issue Sep 26, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@gitchander
Copy link

gitchander commented Sep 26, 2018

$ make build

GOOS= GOARCH= go get -u github.com/prometheus/promu

building binaries
/home/chander/work/langs/golang/path/bin/promu build --prefix /home/chander/work/langs/golang/path/src/github.com/prometheus/prometheus
prometheus

github.com/prometheus/prometheus/discovery/targetgroup

discovery/targetgroup/targetgroup.go:81:5: dec.DisallowUnknownFields undefined (type *json.Decoder has no field or method DisallowUnknownFields)
!! command failed: build -o /home/chander/work/langs/golang/path/src/github.com/prometheus/prometheus/prometheus -ldflags -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/version.Version=2.4.2 -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/version.Revision=4c524007087ef50f02a396e1f4529340ee81783f -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/version.Branch=master -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/version.BuildUser=chander@chander-desktop -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/version.BuildDate=20180926-08:35:12 -extldflags '-static' -a -tags netgo github.com/prometheus/prometheus/cmd/prometheus: exit status 2
Makefile.common:102: ошибка выполнения рецепта для цели «common-build»
make: *** [common-build] Ошибка 1

@gouthamve

This comment has been minimized.

Copy link
Member

gouthamve commented Sep 26, 2018

To build Prometheus from the source code yourself you need to have a working Go environment with version 1.10 or greater installed.

Looks like the go version being used is not the latest. Please upgrade and try again.

@gouthamve gouthamve closed this Sep 26, 2018

@gitchander

This comment has been minimized.

Copy link
Author

gitchander commented Sep 26, 2018

Bingo! It is has already compiled.
But there is no default config file here.

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 25, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 25, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.