Cabal install error: The package has a './configure' script. This requires a Unix

Cabal install error: The package has a './configure' script. This requires a Unix

我正在尝试使用 cabal-install 安装 networkold-time。当我尝试安装时,它失败了:

setup.exe: The package has a './configure' script. This requires a
Unix compatibility toolchain such as MinGW+MSYS or Cygwin.

我有 MinGW,实际上它是与 GHC 一起分发的 MinGW。
我还将 bin 文件夹添加到我的路径中。

我该如何解决这个问题? 运行 配置文件实际上是什么工具?也许我需要得到它?

GHC 7.10.1 x64
cabal 安装版本 1.22.0.0
使用版本 1.22.0.0 的 Cabal 库。
我实际上正在使用 Windows 10 pro insider preview build 10130。我在 7 和 8.1 上做了很多时间,但它从未发生过。我无法想象为什么,但也许它起作用了?

在您引用的块中:

... This requires a Unix compatibility toolchain such as MinGW+MSYS ...

明确表示MinGW+MSYS;仅 MinGW 是不够的。 MSYS 工具链提供了 unix 兼容 shell 和最常见的支持实用程序,允许此组合处理您的配置脚本。

面对完全相同的问题,在安装 Haskell 平台后,我意识到我没有在此处说明此安装过程中的第 2 步

https://www.haskell.org/platform/

这样做解决了我的问题

除了第 2 步 https://www.haskell.org/platform/ 还要检查你的 cabal 配置文件。 如果 extra-prog-path 有多个条目(行),则分隔符应为“;”而不是 Windows.

上的“,”