我正在运行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
有人可以帮忙吗?
答案 0 :(得分:3)
有一个全新的tls-extra需要比其他软件包允许的更新版本的某些软件包,因此cabal-install无法构建一致的安装计划。如果确实想要新的和有光泽的tls-extra,你将不得不等待或手动编辑具有不兼容依赖关系的包,http-enumerator和clientsession,或许更多,以允许更高版本的证书和cryptocipher。
如果您可以使用旧版本,
$ cabal install yesod --constraint="tls-extra < 0.4.1"
可能有效(也许您还需要对其他一些包有更多限制性约束和约束)。