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

Problem with building Prometheus in Windows environment. #1992

Closed
vipetrul opened this Issue Sep 15, 2016 · 2 comments

Comments

Projects
None yet
3 participants
@vipetrul
Copy link

vipetrul commented Sep 15, 2016

Trying to build Prometheus using golang v 1.7
Issued following command:
C:\GoWorkspace\src\Prometheus>go build -o prometheus ./cmd/prometheus

Received exceptions along these lines:
cmd\prometheus\main.go:29:2: cannot find package "github.com/prometheus/prometheus/config" in any of:
C:\GoWorkspace\src\Prometheus\vendor\github.com\prometheus\prometheus\config (vendor tree)
C:\Go\src\github.com\prometheus\prometheus\config (from $GOROOT)
C:\GoWorkspace\src\github.com\prometheus\prometheus\config (from $GOPATH)

Environment
Windows environment. GOPATH is set (see below)

C:\GoWorkspace\src\Prometheus>SET go
GOPATH=C:\GoWorkspace
GOROOT=C:\Go\

  • Prometheus version:
    Current master branch.
@sdurrheimer

This comment has been minimized.

Copy link
Member

sdurrheimer commented Sep 15, 2016

Hi there, you should clone the project as C:\GoWorkspace\src\github.com\prometheus\prometheus not C:\GoWorkspace\src\Prometheus.

@vipetrul vipetrul closed this Sep 15, 2016

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 24, 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 24, 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.