【问题标题】:Cabal trouble resolving dependencies阴谋集团解决依赖问题
【发布时间】:2019-11-07 13:38:25
【问题描述】:

我正在尝试使用cabal v2-install cabal-debian 全局安装包cabal-debian 并收到以下错误消息:

Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: base-4.12.0.0/installed-4.1... (user goal)
[__1] trying: binary-0.8.7.0 (user goal)
[__2] next goal: ghc (user goal)
[__2] rejecting: ghc-8.6.5/installed-8.6... (conflict: binary==0.8.7.0, ghc =>
binary==0.8.6.0/installed-0.8...)
[__2] trying: ghc-8.6.5
[__3] rejecting: ghc:-buildable (conflict: base==4.12.0.0/installed-4.1...,
ghc -buildable => base<0)
[__3] rejecting: ghc:+buildable (manual flag can only be changed explicitly)
[__3] fail (backjumping, conflict set: base, ghc, ghc:buildable)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: binary, base, ghc, ghc:buildable
Try running with --minimize-conflict-set to improve the error message.

我正在使用cabal 3.0.0.0 并安装了ghc 8.6.5

【问题讨论】:

    标签: haskell cabal cabal-install


    【解决方案1】:

    在我看来,您安装的binary 版本似乎与编译器附带的引导库不兼容。我建议您编辑文件

    ~/.ghc/<something>-8.6.5/environments/default
    

    并删除提及binary 的行,然后重试。 (&lt;something&gt; 几乎可以肯定是x86_64-linux。)

    【讨论】:

    • 你猜怎么会这样?
    • @Ackdari 大概您要求安装一些依赖于binary(可能是binary 本身)的库,而不是与所选binary 版本冲突的引导库。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多