douzong5057 2018-05-29 07:34
浏览 1062

错误:mkdir…文件名,目录名称或卷标签语法不正确

I am using postgres_exporter for prometheus, and when I am trying to run it it shows me an error:

Error: failed to run "go-bindata -pkg=assets -o assets/bindata.go -ignore=bindata.go -ignore=.*.map$ -prefix=assets/generated assets/generated/...: exec: "go-bindata": executable file not found in %PATH%" exit status 1

I realised that I had the wrong library of go-bindata installed. So after I installed the other one, error has changed to :

Error: mkdir C:\Users\StarTech\go\src\github.com\wrouesnel\postgres_exporter\bin/C:: The filename, directory name, or volume label syntax is incorrect. exit status 1

This is the link of postgres_exporter: postgres_exporter

First i type these commands:

go get github.com/wrouesnel/postgres_exporter
cd path/src/github.com/wrouesnel/postgres_exporter
go run mage.go
export DATA_SOURCE_NAME="postgresql://login:password@hostname:port/dbname"
./postgres_exporter <flags>

Also i am using run command instead of export since I'm on Windows.

And error happens when I type command go run mage.go docker

  • 写回答

1条回答 默认 最新

  • duanfu2562 2018-05-29 07:37
    关注

    Try installing go-bindata:

    go get -u github.com/tmthrgd/go-bindata/...
    
    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器