haskell - failing cabal install MissingH and network on Windows -
i installed new haskell version: haskellplatform-8.0.1-minimal-x86_64-setup-a, need package missingh, needs package network. cabal install network yields:
$ cabal install network resolving dependencies... cabal: entering directory 'c:\cygwin64\tmp\cabal-tmp-6136\network-2.6.2.1' configuring network-2.6.2.1... configure: warning: unrecognized options: --with-compiler checking build system type... x86_64-unknown-cygwin checking host system type... x86_64-unknown-cygwin checking gcc... c:\progra~1\haskel~1\802e01~1.1\mingw\bin\gcc.exe checking whether c compiler works... no configure: error: in `/tmp/cabal-tmp-6136/network-2.6.2.1': configure: error: c compiler cannot create executables see `config.log' more details cabal: leaving directory 'c:\cygwin64\tmp\cabal-tmp-6136\network-2.6.2.1' failed install network-2.6.2.1 cabal.exe: error: packages failed install: network-2.6.2.1 failed during configure step. exception was: exitfailure 77
first, tried start cygwin command window administrator, didn't solve problem. then, followed stack cannot build network - where's config.log?
while installing using stack yields success, although have run stack setup
$ stack build compiler version mismatched, found ghc-8.0.1 (x86_64), expected minor version match ghc-7.10.3 (x86_64) (based on resolver setting in c:\tmp\network-2.6.2.1\stack.yaml). try running "stack setup" install correct ghc c:\users\<username>\appdata\local\programs\stack\x86_64-windows\
after stack setup, stack build, get:
$ stack test network-2.6.2.1: test (suite: regression) testgetaddrinfo: [ok] test cases total passed 1 1 failed 0 0 total 1 1 network-2.6.2.1: test (suite: simple) basic socket operations: testsend: [ok] testsendall: [ok] testsendto: [ok] testsendallto: [ok] testsendmany: [ok] testsendmanyto: [ok] testrecv: [ok] testoverflowrecv: [ok] testrecvfrom: [ok] testoverflowrecvfrom: [ok] testusertimeout: [ok] test cases total passed 11 11 failed 0 0 total 11 11
yet still can't continue missingh. in fact, still tries install network!
$ cabal install missingh resolving dependencies... cabal: entering directory 'c:\cygwin64\tmp\cabal-tmp-5596\network-2.6.2.1' configuring network-2.6.2.1... configure: warning: unrecognized options: --with-compiler checking build system type... x86_64-unknown-cygwin checking host system type... x86_64-unknown-cygwin checking gcc... c:\progra~1\haskel~1\802e01~1.1\mingw\bin\gcc.exe checking whether c compiler works... no configure: error: in `/tmp/cabal-tmp-5596/network-2.6.2.1': configure: error: c compiler cannot create executables see `config.log' more details cabal: leaving directory 'c:\cygwin64\tmp\cabal-tmp-5596\network-2.6.2.1' failed install network-2.6.2.1
i tried: http://neilmitchell.blogspot.nl/2010/12/installing-haskell-network-library-on.html tested on ghc 6.12.3 , 7.0.1 (and not on new 8.0.1 version). unfortunately, error:
getenv: invalid argument (the operation completed successfully.)
just completeness, cabal version:
$ cabal -v cabal-install version 1.24.0.0 compiled using version 1.24.0.0 of cabal library
what missing install network , missingh?
stack makes assumptions setup, noteably:
- ... it's 1 managing packages on system
- ... it's 1 managing ghc on system
- ... it's 1 managing cabal on system
- ... every project sandboxed
- ... rather have stability , predictability newest versions of everything
you can away using stack "plain" tools - in different projects , if you're careful. things differing versions of cabal-install can still trip up. @ same time keeps own data separated installing via stack invisible cabal. have 2 choices: either have project buy stack or ditch completely.
if want use it, add missingh .cabal file , rebuild , should fine. if errors pop up, easiest solution purge local cabal repository , try again. if doesn't work, purge whole platform , have stack reinstall , try again. stack picky diva, once she's on stage runs it. tip: if cabal interface choose use stack can run stuff stack exec -- cabal install missingh
.
the other option ditch stack completely. uninstall , use cabal alone, possibly sandboxes. still leaves original problem - looks native library missing have install separately. have no idea 1 in specific case, can give few hints look. if find no documentation it, can stack files. (they succeeded, after all) simplest option networking libraries cygwin installed , have install -dev versions of them. right ones.
Comments
Post a Comment