环境:
ubuntu14.04
haskell平台2014 2.0.0 (ghc 7.8.3,阴谋1.18.13)
堆叠:用于GHC 7.8 + Haskell平台的堆叠构建,2014-09-24,独家
根据http://www.yesodweb.com/page/quickstart的说法,我跑:
dsu@dsu-G41MT-D3:~$ cabal install alex happy yesod-bin
Resolving dependencies...
Configuring ansi-terminal-0.6.1.1...
Configuring alex-3.1.3...
Downloading unix-time-0.3.4...
Failed to install ansi-terminal-0.6.1.1
Last 10 lines of the build log ( /home/dsu/.cabal/logs/ansi-terminal-0.6.1.1.log ):
Configuring asn1-types-0.2.3...
Configuring auto-update-0.1.1.3...
Failed to install alex-3.1.3
Last 10 lines of the build log ( /home/dsu/.cabal/logs/alex-3.1.3.log ):
Failed to install asn1-types-0.2.3
Configuring base-unicode-symbols-0.2.2.4...
Last 10 lines of the build log ( /home/dsu/.cabal/logs/asn1-types-0.2.3.log ):
Failed to install auto-update-0.1.1.3
Last 10 lines of the build log ( /home/dsu/.cabal/logs/auto-update-0.1.1.3.log ):
Configuring base64-bytestring-1.0.0.1...
Configuring blaze-builder-0.3.3.4...
Failed to install base-unicode-symbols-0.2.2.4
Last 10 lines of the build log ( /home/dsu/.cabal/logs/base-unicode-symbols-0.2.2.4.log ):
Failed to install unix-time-0.3.4
Last 10 lines of the build log ( /home/dsu/.cabal/logs/unix-time-0.3.4.log ):
cabal: /home/dsu/.cabal/logs/unix-time-0.3.4.log: does not exist它简单地说“失败安装”和没有给任何hints.Why使用堆叠仍然有这些问题吗?
发布于 2014-09-26 06:11:46
这个通用的阴谋调试建议通常会发现这个问题.
更新阴谋数据库,重试
cabal update
cabal install ....尝试分别安装该问题的依赖项.从上面看,我似乎看到了一些以“失败安装.”开头的行,分别测试这些代码。
cabal install base-unicode-symbols如有必要请回电。
下载失败的包,
cabal unpack base-unicode-symbols
cd base-unicode-symbols-*配置以查看其依赖项是否都已加载。
cabal configure如果没有,请重新回到麻烦的一揽子计划中。
尝试构建包
cabal build如果它不工作,您现在有有用的错误消息。如果你能解决这个问题,很好,否则在这里重新发布信息。
安装
cabal install在更激烈的情况下,您可能希望删除(实际上,如果您想要将它移回)您的~/. cabal /*内容,或者您的~/..ghc/*内容,但这是最后的手段,因为您必须重新安装所有的阴谋包。另外,您可能希望保留~/..cabal/bin/*的内容。
发布于 2014-09-28 05:18:41
我刚刚更新了堆栈服务器,使其使用FP Complete的Hackage镜像(这是Amazon支持的)而不是Hackage本身。这将使它完全能够抵御黑客的停机时间。谢谢你提出这个问题,我们绝对希望堆叠比黑客有更好的正常运行时间保证。
发布于 2014-11-20 07:48:23
我也遇到过同样的问题。我已经通过临时删除我的HTTP_PROXY环境变量来解决这个问题,而不是让阴谋集团尝试通过不可访问的服务器进行连接。
https://stackoverflow.com/questions/26052441
复制相似问题