Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to install Happstack on my FreeBSD box all day. Finally I installed GHC 6.10.x. And Cabal 0.8.2. But failed on Happstack. These are errors.

%sudo ~/.cabal/bin/cabal install happstack
Resolving dependencies...
cabal: cannot configure unix-2.4.1.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 and base-4.3.0.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
%sudo ~/.cabal/bin/cabal install base
Resolving dependencies...
cabal: internal error: impossible
%sudo ~/.cabal/bin/cabal install base-4.3.0.0
Resolving dependencies...
cabal: cannot configure base-4.3.0.0. It requires integer-simple -any
There is no available version of integer-simple that satisfies -any
%sudo ~/.cabal/bin/cabal install integer-simple
cabal: There is no package named integer-simple. Perhaps you need to run
'cabal update' first?
%

I did cabal update before all of these procedures. What's the problem?

share|improve this question
1  
Already installed the /usr/ports/lang/ghc port? Here's a rough outline of getting GHC and Cabal installed and configured before installing happstack: book.realworldhaskell.org/read/… –  Chris S Feb 28 '11 at 13:46
    
@Chris Thanks for care. But current GHC port is 6.10.4 has missing some important library packages to install Happstack. I decided to install binary distribution of 6.12.3 from GHC website. It's installing smoothly now :) –  Eonil Feb 28 '11 at 14:20

1 Answer 1

up vote 1 down vote accepted

You need install latest version GHC(6.12.*). Use this tarballs.

share|improve this answer
    
You're right. I'm already doing exactly what you said :) –  Eonil Feb 28 '11 at 14:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.