我想通过使用堆栈从https://hackage.haskell.org/package/hip安装Haskell lib臀部。这不起作用,因为堆栈似乎无法安装依赖项。
我已经curl -sSL https://get.haskellstack.org/ | sh
重新安装了堆栈,stack --version
给了我
Version 1.9.3, Git revision 40cf7b37526b86d1676da82167ea8758a854953b (6211 commits) x86_64 hpack-0.31.1
我尝试了其他解决方案,例如另一个解析器,重新安装了不同版本的stack,ghc或cabal。
我尝试过stack new test
,并且在test
文件夹中写了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.
请告诉我我是否没有提供所有必要的信息来帮助您解决我的问题。
答案 0 :(得分:0)
为什么不stack
推荐什么?
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
这是实现目标的最简单方法。
更新:lts-10.10
是包括髋关节在内的最新解析器。如果您将stack.yaml
更新为使用lts-10.10
,并在hip
文件中添加.cabal
,那应该很好。
答案 1 :(得分:0)
使用解析器lts-7.5
进行安装。