我试图建立Hakyll上一个新的Ubuntu 16.04的实例,但我似乎无法得到基于堆栈的安装说明的权利。栈不解决依赖正确
开始接触stack install hakyll
,我得到:
Error: While constructing the build plan, the following exceptions were encountered:
In the dependencies for hakyll-4.9.3.0:
http-conduit-2.1.11 must match >=2.2 && <2.3 (latest applicable is 2.2.3)
Plan construction failed.
我绑stack-install http-conduit-2.1.11
时得到了类似的错误,这次使用:
Error: While constructing the build plan, the following exceptions were encountered:
In the dependencies for http-conduit-2.2.3:
http-client-0.4.31.2 must match >=0.5 && <0.6 (latest applicable is 0.5.5)
http-client-tls-0.2.4.1 must match >=0.3 && <0.4 (latest applicable is 0.3.3.1)
Plan construction failed.
解决依赖本(也使用堆栈)后,我再次尝试stack install http-conduit-2.1.11
,但我又一次得到了相同的依赖性错误。
的包http-client-0.4.31.2
和http-client-tls-0.2.4.1
出现在我的~/.stack/precompiled/x86_64-linux/ghc-8.0.1/1.24.0.0/
,这是不明确的,我$PATH
,但是那感觉就像一个非常哈克解决方案,我还没有发现任何文档推荐这种方法。
如何在我的机器上正确安装Hakyll?
我了解,现在栈'的宗旨安装hakyll'是为了得到'hakyll-init'二进制文件。该命令失败,因为'hakyll-4.9.3.0'与您的stack.yaml(可能是'〜/ .stack/global-project/stack.yaml')中设置的解析器不兼容。虽然'hakyll-4.9.3.0'包含在[nightly-2017-01-17](https://www.stackage.org/nightly-2017-01-17)中,所以你可以'stack - 每晚解析 - 2017-01-17安装hakyll'。 [说明]的其余部分(https://jaspervdj.be/hakyll/tutorials/01-installation.html)应该大体写作。 – sjakobi
顺便提一下[提供'--solver'标志](https://github.com/commercialhaskell/stack/issues/2656),这将使安装带有堆栈的可执行文件变得更加容易。 – sjakobi