環境:
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