我正在尝试在新的 Ubuntu 16.04 实例上设置Hakyll,但我似乎无法正确获取基于堆栈的设置说明。
从 开始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
出现在 my~/.stack/precompiled/x86_64-linux/ghc-8.0.1/1.24.0.0/
中,这并没有明确地出现在 my 中$PATH
,但这感觉像是一个非常 hacky 的解决方案,而且我还没有找到任何推荐这种方法的文档。
如何在我的机器上正确安装 Hakyll?