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

心不动则不痛 提交于 2019-12-13 12:21: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



来源:https://stackoverflow.com/questions/31146531/cabal-install-error-the-package-has-a-configure-script-this-requires-a-uni

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!