MasterMastic
MasterMastic

Reputation: 21306

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?

Upvotes: 2

Views: 2943

Answers (3)

gergelybat
gergelybat

Reputation: 98

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.

Upvotes: 6

sandwood
sandwood

Reputation: 2167

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

Upvotes: 3

Keith Marshall
Keith Marshall

Reputation: 2034

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.

Upvotes: 3

Related Questions