2

我正在运行 Haskell Platform 2011.2.0.1 并尝试安装 Yesod,但不断收到以下错误:

cabal: cannot configure tls-extra-0.4.1. It requires certificate >=1.0.0 &&
<1.1.0 and cryptocipher >=0.3.0
For the dependency on certificate >=1.0.0 && <1.1.0 there are these packages:
certificate-1.0.0. However none of them are available.
certificate-1.0.0 was excluded because http-enumerator-0.7.1.3 requires
certificate >=0.7 && <0.10
For the dependency on cryptocipher >=0.3.0 there are these packages:
cryptocipher-0.3.0. However none of them are available.
cryptocipher-0.3.0 was excluded because clientsession-0.7.3.2 requires
cryptocipher >=0.2.5 && <0.3

任何人都可以帮忙吗?

4

1 回答 1

3

有一个全新的 tls-extra 需要比其他包允许的更新版本的某些包,因此 cabal-install 无法构建连贯的安装计划。如果你真的想要新的闪亮的 tls-extra,你将不得不等待或手动编辑具有不兼容依赖项的包,http-enumerator 和 clientsession,也许更多,以允许更高版本的证书和密码。
如果您可以使用旧版本,

$ cabal install yesod --constraint="tls-extra < 0.4.1"

可能有效(也许您还需要对其他一些软件包进行更多限制性约束和约束)。

于 2011-11-01T15:10:38.100 回答