环境:
ubuntu14.04安装耶索德与stackage失败
哈斯克尔平台2014 2.0.0(GHC 7.8.3,小集团13年1月18日)
stackage:Stackage建立GHC 7.8 +哈斯克尔平台,2014年9月24日,独家
根据http://www.yesodweb.com/page/quickstart,我跑:
[email protected]:~$ 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
除了jamshidh说的我通常甚至在沙箱中做了snap和yesod--你可以在以后使用cabal sandbox init --sandobx = [你的路径在这里]把你的项目沙箱指向那里并且有一个简单的符号链接到可执行文件将做 - 这样你可以保持你的环境。相当干净和'--force-reinstalls'通常没有问题 – Carsten 2014-09-26 06:39:22
和顺便说一句,这看起来像** hackage down **问题(其中它需要很长的时间,无法下载软件包) - 在这种情况下,只需执行'cabal instal .. 。“一遍又一遍,直到你有所有的包(我注意到你使用堆栈,但掏真正502ing我ATM) – Carsten 2014-09-26 06:40:17
@CarstenKönig你给我一些提示,最后我切换到包容性堆栈,一切都OK! – doofin 2014-09-26 12:20:12