dousi4148 2018-07-15 20:06
浏览 659
已采纳

系统找不到指定的路径/指定的文件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 2018-07-15 20:35
    关注

    Try to create a new empty folder:

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

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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部