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
Can not build from Source on Windows(10) #5370
Comments
thanks for reporting this, should be fixed in latest master |
@torkelo I was getting the same error on Windows 7, after updating to the latest master branch I am getting these errors -
|
@torkelo I am getting this issue when building the same repository on windows 10, if you can help with how to install it from source only for windows, thanks github.com/grafana/grafana/vendor/github.com/mattn/go-sqlite3exec: "gcc": executable file not found in %PATH% |
you need gcc compiler, https://sourceforge.net/projects/mingw-w64/ |
I'm trying to build Grafana with Go 1.5 on Windows 10 as described in the documentation(http://docs.grafana.org/project/building_from_source/).
But when I try to build from the source file with the
go run build.go build
command i get this output:Version: 3.1.0, Linux Version: 3.1.0, Package Iteration: 1466062835
rm -r bin
rm -r Godeps/_workspace/pkg
rm -r Godeps/_workspace/bin
rm -r dist
rm -r tmp
rm -r C:\Users\D062588\Documents\work\pkg\windows_amd64\github.com\grafana
rm -r ./bin/grafana-server.exe
rm -r ./bin/grafana-server.exe.md5
GOPATH=C:\Users\D062588\Documents\work\src\github.com\grafana\grafana\Godeps\_workspace;C:\Users\D062588\Documents\work
go version
go version go1.5 windows/amd64
go build -ldflags -w -X main.version=3.1.0 -X main.commit=v3.0.4+264-g23e0240 -X main.buildstamp=1466060136 -o ./bin/grafana-server.exe ./pkg/cmd/grafana-server
\# github.com/grafana/grafana/pkg/log
pkg\log\log.go:182: undefined: NewSyslog
exit status 2
exit status 1
The
go build .
doesn't work either. There it just sayscan't load package: package github.com/grafana/grafana: no buildable Go source files in C:\Users\D062588\Documents\work\src\github.com\grafana\grafana
Edit: I did everything the same way on linux and there it works fine....
Don't know if my windows configuration is wrong or if it's not possible to build on windows 10.
The text was updated successfully, but these errors were encountered: