Summary: This post describes how to install the Haskell network library on Windows, again.
$ cabal install network-188.8.131.52 Resolving dependencies... Configuring network-184.108.40.206... Failed to install network-220.127.116.11 Build log ( C:\Users\Neil\AppData\Roaming\cabal\logs\network-18.104.22.168.log ): Configuring network-22.214.171.124... configure: WARNING: unrecognized options: --with-compiler checking for gcc... C:\ghc\GHC-80~1.1┼║ checking whether the C compiler works... no configure: error: in `C:/Neil': configure: error: C compiler cannot create executables See `config.log' for more details cabal: Leaving directory '.' cabal.exe: Error: some packages failed to install: old-time-126.96.36.199 failed during the configure step. The exception was: ExitFailure 77
-v3 shows the
CC variable is being set to
C:\ghc\GHC-80~1.1┼║, which looks like a buffer corruption or encoding issue. I tried my previous solution, but it didn't work. My new solution is:
$ cabal unpack network-188.8.131.52 $ cd network-184.108.40.206 $ cabal configure ... fails with a similar error to above ... $ sh ./configure $ cabal build $ cabal copy $ cabal register
I had to repeat the same pattern for the latest version of
old-time, and the same pattern worked.
Another way that works is to use Stack.