如何在 FreeBSD 上安装“Happstack”?

如何在 FreeBSD 上安装“Happstack”?

我整天都在尝试在我的 FreeBSD 机器上安装 Happstack。最后我安装了 GHC 6.10.x。和 Cabal 0.8.2。但在 Happstack 上失败了。这些都是错误。

%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?
%

cabal update之前做过所有这些手术。有什么问题吗?

答案1

您需要安装最新版本的 GHC(6.12.*)。使用此压缩包

相关内容