我正在(几个小时前)为博士后安装diesel_cli
号货箱.然而,每次我运行recommendedCargo 命令:
cargo install diesel_cli --no-default-features --features postgres
我等了几分钟,只看到同一个构建失败->;中止错误,显示以下消息:
note: LINK : fatal error LNK1181: cannot open input file 'libpq.lib'
error: aborting due to previous error
error: failed to compile `diesel_cli v1.4.1`, intermediate artifacts can be found at `C:\Users\<user name here>\AppData\Local\Temp\cargo-installUU2DtT`
Caused by:
could not compile `diesel_cli`.
我在docker容器中运行postgres,C:\pgsql
上有二进制文件,PATH
上有lib
和bin
目录,所以我不明白为什么它没有链接.还有什么是他们在文件中没有提到的?