
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 " Thank you for any help! Tom

Sending to the Happstack mailing list, in case they have seen it before.
On Tue, Apr 5, 2011 at 1:25 PM, Tom Murphy
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 " Thank you for any help! Tom _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

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

$ 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

On Tuesday 05 April 2011 21:08:10, Tom Murphy wrote:
$ ghc-pkg check report ghc-pkg: command-line syntax error Usage: ghc-pkg register {filename | -} [...]
Aw, I should've used quotes or a separate line, the command is $ ghc-pkg check I meant: what does "ghc-pkg check" report.
$ cabal install -v3 --dry-run happstack
Unfortunately, that wasn't helpful, gave me no clue why it would want to install unix-2.4.2.0 :(

On Tue, Apr 5, 2011 at 4:13 PM, Daniel Fischer
On Tuesday 05 April 2011 21:08:10, Tom Murphy wrote:
$ ghc-pkg check report ghc-pkg: command-line syntax error Usage: ghc-pkg register {filename | -} [...]
Aw, I should've used quotes or a separate line, the command is
$ ghc-pkg check
I meant: what does "ghc-pkg check" report.
$ cabal install -v3 --dry-run happstack
Unfortunately, that wasn't helpful, gave me no clue why it would want to install unix-2.4.2.0 :(
Maybe we can try to break the problem down into smaller pieces. Happstack is composed of multiple packages, and you could try them one at a time to narrow things down a bit: happstack-util happstack-data happstack-state happstack-ixset happstack-server happstack If you cabal install each one of the above in turn (and in order!) it will mimic "cabal install happstack" fairly well. Antoine

Aw, I should've used quotes or a separate line, the command is
$ ghc-pkg check
I meant: what does "ghc-pkg check" report.
Nothing happened: " $ ghc-pkg check $ "
Maybe we can try to break the problem down into smaller pieces.
Happstack is composed of multiple packages, and you could try them one at a time to narrow things down a bit:
happstack-util happstack-data happstack-state happstack-ixset happstack-server happstack
If you cabal install each one of the above in turn (and in order!) it will mimic "cabal install happstack" fairly well.
I get the "cannot configure unix" error for: - happstack-util - happstack-state - happstack-ixset - happstack-server - happstack In other words, everything except happstack-data. Thanks for the help! Tom

On Tue, Apr 5, 2011 at 9:15 PM, Tom Murphy
I get the "cannot configure unix" error for: - happstack-util - happstack-state - happstack-ixset - happstack-server - happstack In other words, everything except happstack-data.
Well, happstack-util is a dependency for the rest of the packages you listed, so you might be better off focusing your efforts there. It requires unix-compat to build. What does "cabal install unix-compat" give you? If that's what's breaking you can try "cabal install unix-compat-0.1.2.1" and then "cabal install happstack-util". Version 0.1.2.1 appears to be the most recent version of unix-compat that doesn't specify version bounds on the unix package, which is what you're having trouble with. If it works let us know. Antoine
Thanks for the help! Tom

On Tue, Apr 5, 2011 at 10:00 PM, Antoine Latter
On Tue, Apr 5, 2011 at 9:15 PM, Tom Murphy
wrote: I get the "cannot configure unix" error for: - happstack-util - happstack-state - happstack-ixset - happstack-server - happstack In other words, everything except happstack-data.
Well, happstack-util is a dependency for the rest of the packages you listed, so you might be better off focusing your efforts there.
It requires unix-compat to build. What does "cabal install unix-compat" give you?
If that's what's breaking you can try "cabal install unix-compat-0.1.2.1" and then "cabal install happstack-util". Version 0.1.2.1 appears to be the most recent version of unix-compat that doesn't specify version bounds on the unix package, which is what you're having trouble with.
If it works let us know.
Antoine
Thanks for the help! Tom
Also, I'm pretty confused by all of this - unix-2.4.0.0 should build on GCH 6.10. Folks have been saying they've had bad luck installing it separate from a GHC install, though, so I don't know if I should recommend it. Antoine

It requires unix-compat to build. What does "cabal install unix-compat" give you?
The same error. But...
If that's what's breaking you can try "cabal install unix-compat-0.1.2.1" and then "cabal install happstack-util". Version 0.1.2.1 appears to be the most recent version of unix-compat that doesn't specify version bounds on the unix package, which is what you're having trouble with.
This worked, then "cabal install happstack" worked perfectly(!) Can anyone point me to a tutorial which explains basics of cabal? I'm trying to navigate it, without understanding version bounds, or really anything related to how cabal handles versions of dependencies. Thank you for the help! Tom

Good morning, The Cabal User manual link is: http://www.haskell.org/cabal/release/cabal-latest/doc/users-guide/ I'm right behind you, I'm working on Yesod on a Windows Vista PC. Wish us both luck ----- Original Message ----- From: Tom Murphy To: Antoine Latter Cc: beginners@haskell.org ; Daniel Fischer Sent: Wednesday, April 06, 2011 12:40 AM Subject: Re: [Haskell-beginners] Happstack dependency problems It requires unix-compat to build. What does "cabal install unix-compat" give you? The same error. But... If that's what's breaking you can try "cabal install unix-compat-0.1.2.1" and then "cabal install happstack-util". Version 0.1.2.1 appears to be the most recent version of unix-compat that doesn't specify version bounds on the unix package, which is what you're having trouble with. This worked, then "cabal install happstack" worked perfectly(!) Can anyone point me to a tutorial which explains basics of cabal? I'm trying to navigate it, without understanding version bounds, or really anything related to how cabal handles versions of dependencies. Thank you for the help! Tom ------------------------------------------------------------------------------ _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
participants (4)
-
Antoine Latter
-
Daniel Fischer
-
Patrick Lynch
-
Tom Murphy