Install Cabal-dev with cygwin on windows 7

I am trying to do this:

cabal install cabal-dev 

I have the latest haskell platform installed, and cygwin is my way.

I'm so far away:

 Resolving dependencies... Downloading network-2.3.2.0... Configuring network-2.3.2.0... 

and then, in the end, I get the sh.exe.stackdump file

 Stack trace: Frame Function Args 00289218 6102F97B (00289218, 00000000, 00000000, 00000000) 00289508 6102F97B (6119FE20, 00008000, 00000000, 611A1C8F) 0028A538 6100652C (611DC6AC, 0028A564, 765A1148, 000002B4) 0028A558 61006568 (611DC6AC, 611DC75D, 00000000, 00000000) 0028A598 61076E70 (61203020, 00000000, 00000000, 00000000) 0028A5D8 61077007 (0028A600, 0028A5E0, 00000000, 00000000) 0028A768 61078179 (00000000, 00000000, 00000000, 00000000) End of stack trace 

the process handler tells me that it is trying to start:

 "sh" "configure" "--with-compiler=ghc" "--prefix=C:\Users\Adam\AppData\Roaming\cabal" "--with-gcc=C:\Program Files (x86)\Haskell Platform\2012.2.0.0\mingw\bin\gcc.exe" 

From here:

 C:\Users\XXX\AppData\Local\Temp\network-2.3.2.0-7028\network-2.3.2.0\ 

How to install it?

He tried

 runghc Setup.hs configure 

from the network-2.3.2.0 folder, and also with the same result.

Update:

I got it to install using (thanks!)

 cabal install --constraint="network installed" cabal-dev 

But I can’t figure out how to use it.

 > cabal-dev install && yesod cabal-dev is not recognized as an internal or external command 

I'm trying to go through this tutorial for YESOD , but not very far

+4
source share
2 answers

As a note to the note, you should not reinstall network , but instead must force cabal-dev to be installed using the current network package.

+1
source

I installed it in the sandbox via Git Bash (which is the MINGW32 shell) using:

 cabal install network --configure-option --build=i386-unknown-mingw32 --configure-option --host=i686-pc-mingw32 

Of course, you can add --enable-shared if you want to enable dynamic binding.

+1
source

Source: https://habr.com/ru/post/1439893/


All Articles