Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cygwin not recognized as Unix compatibility toolchain by Cabal

Greetings,

Trying to install a sample Snap Framework project using Cabal while on Windows 7 and in Cygwin.

cabal install

on my project in cygwin ends with

Resolving dependencies... Configuring unix-2.4.1.0... cabal.exe: The package has a './configure' script. This requires a Unix compatibility toolchain such as MinGW+MSYS or Cygwin. cabal.exe: Error: some packages failed to install: proj-0.1 depends on unix-2.4.1.0 which failed to install. unix-2.4.1.0 failed during the configure step. The exception was: ExitFailure 1

Sadly, I get this while inside cygwin.

So far, I've found that this discussion references a similar problem, but its proposed solution (install MinGW) seems like overkill, given that things should work within cygwin.

I'm fairly new to Haskell, so not really sure what conf files I should play with or what the actual dependencies are. Pointing me in the right direction would be much appreciated.

like image 494
AlexeyMK Avatar asked Nov 18 '10 05:11

AlexeyMK


1 Answers

You need C:\cygwin and C:\cygwin\bin in your path. Then you can do this within cmd.

like image 121
Adam Gordon Bell Avatar answered Sep 22 '22 00:09

Adam Gordon Bell