haskell / network

Low-level networking interface
http://hackage.haskell.org/package/network
Other
327 stars 188 forks source link

Cannot install 3.1.1.1 on Windows #528

Open stla opened 2 years ago

stla commented 2 years ago

Hello,

I've just spent a couple of hours trying to install network on Windows, with no luck:

network> config.status: creating include/HsNetworkConfig.h
network> config.status: include/HsNetworkConfig.h is unchanged
network> configure: WARNING: unrecognized options: --with-compiler
network> setup.EXE: Missing dependency on a foreign library:
network> * Missing (or bad) header file: HsNet.h
network> This problem can usually be solved by installing the system package that
network> provides this library (you may need the "-dev" version). If the library is
network> already installed but in a non-standard location then you can use the flags
network> --extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the
network> library file does exist, it may contain errors that are caught by the C
network> compiler at the preprocessing stage. In this case you can re-run configure
network> with the verbosity flag -v3 to see the error messages.
network> If the header file does exist, it may contain errors that are caught by the C
network> compiler at the preprocessing stage. In this case you can re-run configure
network> with the verbosity flag -v3 to see the error messages.
network>

--  While building package network-3.1.1.1 (scroll up to its section to see the error) using:
      C:\Users\sdl96354\AppData\Local\Temp\stack-15125554c10405a2\network-3.1.1.1\.stack-work\dist\29cc6475\setup\setup --builddir=.stack-work\dist\29cc6475 configure --with-ghc=C:\Users\sdl96354\AppData\Local\Programs\stack\x86_64-windows\ghc-8.8.4\bin\ghc-8.8.4.exe --with-ghc-pkg=C:\Users\sdl96354\AppData\Local\Programs\stack\x86_64-windows\ghc-8.8.4\bin\ghc-pkg.exe --user --package-db=clear --package-db=global --package-db=C:\sr\snapshots\ce41ca4b\pkgdb --libdir=C:\sr\snapshots\ce41ca4b\lib --bindir=C:\sr\snapshots\ce41ca4b\bin --datadir=C:\sr\snapshots\ce41ca4b\share --libexecdir=C:\sr\snapshots\ce41ca4b\libexec --sysconfdir=C:\sr\snapshots\ce41ca4b\etc --docdir=C:\sr\snapshots\ce41ca4b\doc\network-3.1.1.1 --htmldir=C:\sr\snapshots\ce41ca4b\doc\network-3.1.1.1 --haddockdir=C:\sr\snapshots\ce41ca4b\doc\network-3.1.1.1 --dependency=base=base-4.13.0.0 --dependency=bytestring=bytestring-0.10.10.1 --dependency=deepseq=deepseq-1.4.4.0  --extra-include-dirs=C:\Users\sdl96354\AppData\Local\Programs\stack\x86_64-windows\msys2-20210604\mingw64\include --extra-lib-dirs=C:\Users\sdl96354\AppData\Local\Programs\stack\x86_64-windows\msys2-20210604\mingw64\lib --extra-lib-dirs=C:\Users\sdl96354\AppData\Local\Programs\stack\x86_64-windows\msys2-20210604\mingw64\bin --exact-configuration --ghc-option=-fhide-source-paths
    Process exited with code: ExitFailure 1

In fact this is for my Hakyll blog. Previously I worked on Linux and this worked fine, but now my Linux laptop is broken, so I tried to install on Windows. I'm using stack with the resolver lts-16.18.

kazu-yamamoto commented 1 week ago

Can you install newest versions of network?