dousi4148
dousi4148
2018-07-16 04:06

系统找不到指定的路径/指定的文件grafana

  • 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!

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答

  • dongxiong5546 dongxiong5546 3年前

    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.

    点赞 评论 复制链接分享