haskell - Which unix compatibility toolchain to use with cabal install on windows? -


trying install blogliterately on win7/64.

  • installed hp 2014.2/64
  • cabal update
  • cabal install cabal-install
  • renamed c:\program files\haskell platform\2014.2.0.0\lib\extralibs\bin\cabal.exe *.old
  • cabal update
  • cabal install blogliterately fails cuz needs unix toolchain install new version of network
  • tried installing mingw, gave cuz package manager pops lists packages suffix 32, want 64, can't tell http://www.mingw.org/ if supports 64 bit.
  • tried installing cygwin64, added c:\cygwin64\bin end of path, didn't work, see on internet people think cygwin doesn't work ghc anymore, though original error said cygwin work
  • found http://msys2.github.io/, installed it, followed instructions update pacman on page, used win64 shell
  • got error hsopenssl missing c libs eay32 ssl32, googling says install http://slproweb.com/products/win32openssl.html cabal install hsopenssl --extra-include-dirs="c:/openssl-win64/include" --extra-lib-dirs="c:/openssl-win64" -- works, can't find official looking docs saying need win32openssl -- why can't cabal install me?
  • now cabal install blogliterately fails cuz ghc.exe: unable load package 'hs-bibutils-5.5'

the error:

ghc.exe: warning: _stricmp msvcrt linked instead of __imp__stricmp ghc.exe: warning: _stricmp msvcrt linked instead of __imp__stricmp ghc.exe: warning: _atoi64 msvcrt linked instead of __imp__atoi64 ghc.exe: warning: toupper msvcrt linked instead of __imp_toupper ghc.exe: warning: _strnicmp msvcrt linked instead of __imp__strnicmp ghc.exe: c:\users\nlab\appdata\roaming\cabal\x86_64-windows-ghc-7.8.3\hs-bibutils-5.5\hshs-bibutils-5.5.o: unknown symbol `strdup' 

cabal install hs-bibutils --reinstall --force-reinstalls succeeds, same error when retrying blogliterately install. tried moving /c/program files/haskell platform/2014.2.0.0/mingw/bin front of path , again reinstalling hs-bibutils, same result.

what right way this?!?! unix toolchain supposed use, , how supposed configure it? why isn't enough hp includes mingw's binaries? gah.

for posterity, new versions of haskell platform windows (since 8.0.1) allow network build if cabal file augmented few settings described on platform website: https://www.haskell.org/platform/

modify cabal config file (you can verify location running "cabal user-config init") contain following lines: extra-prog-path: c:\program files\haskell platform\8.0.1\msys\usr\bin extra-lib-dirs: c:\program files\haskell platform\8.0.1\mingw\lib extra-include-dirs: c:\program files\haskell platform\8. 

Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -