【问题标题】:Trouble installing yesod安装yesod时遇到问题
【发布时间】:2011-11-01 13:08:29
【问题描述】:

我正在运行 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

谁能帮忙?

【问题讨论】:

    标签: haskell yesod


    【解决方案1】:

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

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

    可能有效(也许您还需要更多限制性约束以及对其他一些包的约束)。

    【讨论】:

    • 正是如此。我已经发布了新版本的 http-enumerator 和 clientsession,所以希望现在已经解决了。
    • 我没有尝试实际安装它,但我可以确认 cabal-install 现在可以构建一个连贯的安装计划。
    • 我现在已经安装了 Yesod 并运行了 Hello World 应用程序。感谢您的帮助!
    猜你喜欢
    • 2014-09-11
    • 2013-12-24
    • 2020-02-27
    • 2018-02-25
    • 2011-06-06
    • 2021-04-14
    • 2016-03-23
    • 2018-09-25
    • 2018-04-18
    相关资源
    最近更新 更多