gpt4 book ai didi

haskell - cabal 安装依赖错误 : "base-* was excluded because of the top level dependency base -any"

转载 作者:行者123 更新时间:2023-12-04 12:12:34 25 4
gpt4 key购买 nike

这是完整的错误:

$ cabal install hakyll
Resolving dependencies...
cabal: cannot configure snap-server-0.5.3.1. It requires base >=4.3 && <5
For the dependency on base >=4.3 && <5 there are these packages: base-4.3.0.0,
base-4.3.1.0 and base-4.4.0.0. However none of them are available.
base-4.3.0.0 was excluded because of the top level dependency base -any
base-4.3.1.0 was excluded because of the top level dependency base -any
base-4.4.0.0 was excluded because of the top level dependency base -any
$
base-* 的版本如何?由于某些似乎表明任何版本都可以的规则而被排除在外?

最佳答案

每次我遇到这个问题,都是因为我做了以下所有事情:

  • 从 Hackage 下载了一个包含过时依赖项的包。
  • 更新了依赖项并观察到它构建良好(或花费时间修复发生的任何错误)。
  • cabal install使用新的依赖项。
  • 没有更新版本号。

  • 最后一个是真正的踢球者。 cabal install将假设,如果它知道来自 Hackage 的包的版本/依赖项对,则该对是规范的。如果您希望它了解更新的依赖项,请在安装之前更改包的版本号。

    您将需要检查您是否已为您手动安装的任何 hakyll 依赖项正确执行此操作。

    关于haskell - cabal 安装依赖错误 : "base-* was excluded because of the top level dependency base -any",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7375719/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com