加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

haskell – cabal安装依赖性错误:“base- *被排除在外,因为顶级

发布时间:2020-12-13 20:12:43 所属栏目:百科 来源:网络整理
导读:这是完整的错误: $cabal install hakyllResolving dependencies...cabal: cannot configure snap-server-0.5.3.1. It requires base =4.3 5For 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. Howe
这是完整的错误:
$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安装.
>没有更新版本号.

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

您需要检查是否已正确完成此操作,以便您手动安装任何hakyll的依赖项.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读