安装hip时堆栈无法解决依赖关系 [英] stack does not resolve dependencies when installing hip

查看:148
本文介绍了安装hip时堆栈无法解决依赖关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从>://hackage.haskell.org/package/臀部.这是行不通的,因为堆栈似乎无法安装依赖项.

I want to install the Haskell libary hip from https://hackage.haskell.org/package/hip by using stack. This does not work, because stack seems to not being able to install dependencies.

我已经通过curl -sSL https://get.haskellstack.org/ | sh重新安装了堆栈,并且stack --version给了我

I have stack freshly installed by curl -sSL https://get.haskellstack.org/ | sh, and stack --version gives me

Version 1.9.3, Git revision 40cf7b37526b86d1676da82167ea8758a854953b (6211 commits) x86_64 hpack-0.31.1

我尝试了其他解决方案,例如重新解析器,重新安装了不同版本的stack,ghc或cabal.

I have tried several things like another resolver, reinstalling different versions of stack, ghc or cabal.

我尝试过stack new test,并且在test文件夹中,我写了stack install hip.

I have tried stack new test, and inside the test folder, i wrote stack install hip.

我遇到以下错误:

Error: While constructing the build plan, the following exceptions were
encountered:

In the dependencies for hip-1.5.3.0:
    Chart must match >=1.5, but the stack configuration has no specified
          version  (latest matching version is 1.9)
    Chart-diagrams must match >=1.5, but the stack configuration has no
                   specified version  (latest matching version is 1.9)
needed since hip is a build target.

Some different approaches to resolving this:

  * Consider trying 'stack solver', which uses the cabal-install solver to
    attempt to find some working build configuration. This can be convenient
    when dealing with many complicated constraint errors, but results may be
    unpredictable.

  * Recommended action: try adding the following to your extra-deps
    in /home/jarek/Desktop/test/stack.yaml:

Chart-1.9@sha256:f41568b6b3704f66c2ec163295b430ab7d798f91de426c2d5aba747d1135cd9b
Chart-diagrams-1.9@sha256:cdd0c22d730e507f9644e690833096ee127302b5ff5e1571f6def419160a2642

Plan construction failed.

我希望这样:

Building dependencies...
Installing Chart-1.9
...
...
...
hip successfully installed.

请告诉我我是否没有提供所有必要的信息来帮助您解决我的问题.

Please tell me if i did not provide all infos necessary for you to help me with my problem.

推荐答案

为什么不执行stack推荐的内容?

Why not do what stack recommended?

Recommended action: try adding the following to your extra-deps
in /home/jarek/Desktop/test/stack.yaml:

Chart-1.9@sha256:f41568b6b3704f66c2ec163295b430ab7d798f91de426c2d5aba747d1135cd9b
Chart-diagrams-1.9@sha256:cdd0c22d730e507f9644e690833096ee127302b5ff5e1571f6def419160a

这是实现目标的最简单方法.

It's the easiest way to accomplish your goal.

更新:lts-10.10是包括髋关节在内的最新解析器.如果您将stack.yaml更新为使用lts-10.10并在.cabal文件中添加hip,则应该会很好.

Update: lts-10.10 is the most recent resolver to include hip. If you update your stack.yaml to use lts-10.10 and add hip in your .cabal file, you should be good to go.

这篇关于安装hip时堆栈无法解决依赖关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆