Search code examples
mingwghccabal

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


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?


Solution

  • 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.