
$ ghc-pkg check report ghc-pkg: command-line syntax error Usage: ghc-pkg register {filename | -} [...] $ cabal install -v3 --dry-run happstack searching for ghc in path. found ghc at /opt/local/bin/ghc ("/opt/local/bin/ghc",["--numeric-version"]) /opt/local/bin/ghc is version 6.10.4 looking for package tool: ghc-pkg near compiler in /opt/local/bin found package tool in /opt/local/bin/ghc-pkg ("/opt/local/bin/ghc-pkg",["--version"]) /opt/local/bin/ghc-pkg is version 6.10.4 ("/opt/local/bin/ghc",["--supported-languages"]) Reading installed packages... ("/opt/local/bin/ghc-pkg",["dump","--global"]) ("/opt/local/bin/ghc-pkg",["dump","--user"]) ("/opt/local/bin/ghc",["--print-libdir"]) Reading available packages... Resolving dependencies... selecting happstack-6.0.0 (hackage) and discarding happstack-0.2.1, 0.3.1, 0.3.2, 0.4.1, 0.5.0, 0.5.0.2, 0.5.0.3, happstack-data-0.1, 0.2.1, 0.3.1, 0.3.2, 0.3.3, 0.4.1, 0.5.0, 0.5.0.2, 0.5.0.3, happstack-ixset-0.1, 0.2.1, 0.3.1, 0.3.2, 0.4.1, 0.5.0, 0.5.0.1, 0.5.0.2, 0.5.0.3, happstack-server-0.1, 0.2.1, 0.3.1, 0.3.2, 0.3.3, 0.4.1, 0.5.0, 0.5.0.2, 0.5.0.3, 0.5.0.4, happstack-state-0.1, 0.2.1, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.4.1, 0.5.0, 0.5.0.2, 0.5.0.3, 0.5.0.4, happstack-util-0.1, 0.2.1, 0.3.1, 0.3.2, 0.4.1, 0.5.0, 0.5.0.1, 0.5.0.2 and 0.5.0.3 selecting happstack-data-6.0.0 (hackage) and discarding mtl-1.0, syb-with-class-0.6.1, 0.6.1.1, text-0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.7.0.1, 0.7.1.0, 0.7.2.1, 0.8.0.0, 0.8.1.0, 0.9.0.0, 0.9.0.1, 0.9.1.0, time-1.0, 1.1.2.0, 1.1.2.1, 1.1.2.2, 1.1.2.3, 1.1.2.4 and 1.1.3 selecting happstack-ixset-6.0.0 (hackage) selecting happstack-state-6.0.0 (hackage) selecting happstack-util-6.0.0 (hackage) and discarding network-2.0 and 2.1.0.0 selecting syb-with-class-instances-text-0.0.1 (hackage) selecting happstack-server-6.0.3 (hackage) and discarding blaze-html-0.1, 0.1.1, 0.1.2, 0.2, 0.2.1, 0.2.2, 0.2.3, 0.2.4.0, happstack-server-6.0.0, 6.0.1, 6.0.2, network-2.2.3, 2.2.3.1, 2.3, 2.3.0.1, 2.3.0.2, sendfile-0.1, 0.2, 0.3, 0.3.1, 0.4, 0.5, 0.6.1, 0.6.2, 0.7.0, utf8-string-0.1, 0.2, 0.3, 0.3.1, 0.3.1.1, 0.3.2 and 0.3.3 selecting sendfile-0.7.3 (hackage) and discarding sendfile-0.7.1 and 0.7.2 selecting network-bytestring-0.1.3.4 (hackage) and discarding network-2.2.0.0, 2.2.0.1, 2.2.1, network-bytestring-0.1, 0.1.1, 0.1.1.1, 0.1.1.2, 0.1.1.3, 0.1.1.4, 0.1.2, 0.1.2.1, 0.1.3, 0.1.3.1, 0.1.3.2 and 0.1.3.3 selecting zlib-0.5.0.0 (installed or hackage) and discarding zlib-0.2, 0.3, 0.4, 0.4.0.1, 0.4.0.2, 0.4.0.3, 0.4.0.4, 0.5.2.0 and 0.5.3.1 selecting html-1.0.1.2 (installed or hackage) and discarding html-1.0 and 1.0.1.1 selecting xhtml-3000.2.0.1 (installed or hackage) and discarding xhtml-3000.0.0, 3000.0.1, 3000.0.2.1, 3000.0.2.2, 3000.1.0.0 and 3000.2.0.0 selecting stm-2.2.0.1 (installed or hackage) and discarding stm-2.1, 2.1.1.0, 2.1.1.2, 2.1.2.0, 2.1.2.1, 2.1.2.2 and 2.2.0.0 selecting unix-compat-0.2.1.1 (hackage) and discarding unix-2.0, 2.2.0.0, 2.3.0.0, 2.3.1.0, 2.3.2.0, unix-compat-0.1, 0.1.1, 0.1.2.0, 0.1.2.1, 0.2 and 0.2.1 selecting blaze-html-0.4.1.0 (hackage) and discarding blaze-builder-0.1, 0.2.0.0, 0.2.0.1, 0.2.0.2, 0.2.0.3, 0.3.0.0, blaze-html-0.3.0.0, 0.3.0.1, 0.3.0.2, 0.3.0.4, 0.3.1.0, 0.3.2.0, 0.3.2.1 and 0.4.0.0 selecting blaze-builder-0.2.1.4 (hackage) and discarding blaze-builder-0.2.1.0, 0.2.1.1, 0.2.1.2 and 0.2.1.3 selecting binary-0.5.0.2 (installed or hackage) and discarding binary-0.2, 0.3, 0.4, 0.4.1, 0.4.2, 0.4.3, 0.4.3.1, 0.4.4, 0.5 and 0.5.0.1 selecting hslogger-1.1.4 (installed or hackage) and discarding hslogger-1.0.2, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.9, 1.0.10, 1.0.11, 1.0.12, 1.1.0, 1.1.1, 1.1.2 and 1.1.3 selecting MaybeT-0.1.2 (installed or hackage) and discarding MaybeT-0.1.0 and 0.1.1 selecting network-2.2.1.4 (installed or hackage) and discarding network-2.2.1.1, 2.2.1.2, 2.2.1.3, 2.2.1.5, 2.2.1.6, 2.2.1.7, 2.2.1.8, 2.2.1.9 and 2.2.1.10 selecting text-0.11.0.6 (hackage) and discarding deepseq-1.0.0.0, text-0.10.0.0, 0.10.0.1, 0.10.0.2, 0.11.0.0, 0.11.0.1, 0.11.0.2, 0.11.0.3, 0.11.0.4 and 0.11.0.5 selecting ghc-prim-0.1.0.0 (installed) selecting rts-1.0 (installed) selecting extensible-exceptions-0.1.1.0 (installed or hackage) and discarding extensible-exceptions-0.1.0.1, 0.1.1.1 and 0.1.1.2 selecting deepseq-1.1.0.2 (hackage) and discarding deepseq-1.1.0.0 and 1.1.0.1 selecting parsec-2.1.0.1 (installed or hackage) and discarding parsec-2.0, 2.1.0.0, 3.0.0, 3.0.1, 3.1.0 and 3.1.1 selecting syb-with-class-0.6 (hackage) and discarding syb-with-class-0.1, 0.2, 0.3, 0.4, 0.5, 0.5.1, template-haskell-2.4.0.0, 2.4.0.1 and 2.5.0.0 selecting template-haskell-2.3.0.1 (installed or hackage) and discarding template-haskell-2.2.0.0 and 2.3.0.0 selecting packedstring-0.1.0.1 (installed or hackage) and discarding packedstring-0.1.0.0 selecting utf8-string-0.3.6 (hackage) and discarding utf8-string-0.3.4 and 0.3.5 selecting random-1.0.0.1 (installed or hackage) and discarding random-1.0.0.0, 1.0.0.2 and 1.0.0.3 selecting time-1.1.4 (installed or hackage) and discarding time-1.2, 1.2.0.1, 1.2.0.2, 1.2.0.3 and 1.2.0.4 selecting mtl-2.0.1.0 (installed or hackage) and discarding mtl-1.1.0.0, 1.1.0.1, 1.1.0.2, 1.1.1.0, 1.1.1.1, 2.0.0.0, transformers-0.0.0.0, 0.0.1.0, 0.1.0.0, 0.1.0.1, 0.1.1.0, 0.1.3.0 and 0.1.4.0 selecting transformers-0.2.2.0 (installed or hackage) and discarding transformers-0.2.0.0 and 0.2.1.0 selecting process-1.0.1.1 (installed or hackage) and discarding directory-1.1.0.0, filepath-1.0, 1.2.0.0, process-1.0.0.0, 1.0.1.2, 1.0.1.3, 1.0.1.4 and 1.0.1.5 selecting pretty-1.0.1.0 (installed or hackage) and discarding pretty-1.0.0.0, 1.0.1.1 and 1.0.1.2 selecting directory-1.0.0.3 (installed or hackage) and discarding directory-1.0.0.0, 1.0.1.0, 1.0.1.1 and 1.0.1.2 selecting cabal: cannot configure unix-2.4.2.0. It requires base >=4.2 && <4.4 For the dependency on base >=4.2 && <4.4 there are these packages: base-4.2.0.0, base-4.2.0.1, base-4.2.0.2, base-4.3.0.0 and base-4.3.1.0. However none of them are available. base-4.2.0.0 was excluded because of the top level dependency base -any base-4.2.0.1 was excluded because of the top level dependency base -any base-4.2.0.2 was excluded because of the top level dependency base -any base-4.3.0.0 was excluded because of the top level dependency base -any base-4.3.1.0 was excluded because of the top level dependency base -any Thanks for your time. Tom On Tue, Apr 5, 2011 at 3:04 PM, Daniel Fischer < daniel.is.fischer@googlemail.com> wrote:
On Tuesday 05 April 2011 20:25:36, Tom Murphy wrote:
Hi all,
I'm having build troubles with Happstack. I'll let the error message speak for itself:
" $ export PATH=~/.cabal/bin:$PATH $ cabal update $ cabal install happstack Resolving dependencies... cabal: cannot configure unix-2.4.2.0. It requires base >=4.2 && <4.4 For the dependency on base >=4.2 && <4.4 there are these packages: base-4.2.0.0, base-4.2.0.1, base-4.2.0.2, base-4.3.0.0 and base-4.3.1.0. However none of them are available. base-4.2.0.0 was excluded because of the top level dependency base -any base-4.2.0.1 was excluded because of the top level dependency base -any base-4.2.0.2 was excluded because of the top level dependency base -any base-4.3.0.0 was excluded because of the top level dependency base -any base-4.3.1.0 was excluded because of the top level dependency base -any "
Yes, that error message is terrible. What it means is that for some reason, cabal can't choose any of these versions.
However, it's suspicious that it tries to install unix-2.4.2.0 at all. You should have a unix package installed that came with your ghc, and that should be used.
Have you any packages in your user-db which shadow packages in the global db? What does ghc-pkg check report, and what does
$ cabal install -v3 --dry-run happstack
say?
Thank you for any help! Tom