Cabal install error: The package has a './conf

2020-07-25 01:30发布

问题:

I'm trying to install network and old-time with cabal-install. When I try to install either it fails with:

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

I do have MinGW, in fact it's the MinGW distributed along with GHC.
I've also added the bin folder to my PATH.

How can I fix this? what tool is the one actually running the configure files? maybe I need to get it?

GHC 7.10.1 x64
cabal-install version 1.22.0.0
using version 1.22.0.0 of the Cabal library.
And I'm actually on a Windows 10 pro insider preview build 10130. I did the above a bunch of time on 7 and 8.1 and it never happened. I can't imagine why but maybe it plays a role?

回答1:

In your quoted block:

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

explicitly says MinGW+MSYS; MinGW alone is not enough. It is the MSYS tool chain which provides the unix compatible shell and most common supporting utilities, which allow this combination to process your configure script.



回答2:

In addition to Step 2 in https://www.haskell.org/platform/ also check your cabal config file. If there are multiple entries (lines) for extra-prog-path, the separator should be ";" and not "," on Windows.



回答3:

Facing the exact same issue, after having installed Haskell Platform, I realised that I did not make Step 2 explained in this install procedure here

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

Doing so solved my issue



标签: mingw ghc cabal