简体   繁体   中英

system cannot find path specified / file specified grafana

I've been trying to build grafana from its source code on windows by following the instructions here

I am stuck and am failing to set the GOPATH path properly. I set it to the default go directory in C:\\myname but whenever I try to change to that directory using the command "cd $GOPATH/src/github.com/grafana/grafana" it says the system cannot find the specified path. And even if I put the path manually and in the directory try to run "go run build.go setup" the system cannot find the file specified.

If someone could help me that'd be great!

Try to create a new empty folder:

mkdir C:\myFolder
cd C:\myFolder
set GOPATH=C:\myFolder
go get github.com/grafana/grafana

That should create a src\\github.com\\grafana\\grafana folder, with the sources inside.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM