我安装了cabal 1.16并尝试更新:
alex@cf:~# cabal --version
cabal-install version 1.16.0.2
using version 1.16.0 of the Cabal library
尝试更新:
alex@cf:~# sudo cabal install --global cabal-install
cabal: There is no package named 'cabal-install'.
You may need to run 'cabal update' to get the latest list of available
packages
此时我运行cabal update
,然后运行cabal install
返回与上面相同的内容。然后我从git获取cabal,签出1.20.0.2并运行sudo cabal install Cabal/ cabal-install/
几分钟后,提示在该行停止:
[17 of 78] Compiling Distribution.PackageDescription ( Distribution/PackageDescription.hs, dist/build/Distribution/PackageDescription.o )
带有以下消息:
[17 of 78] Compiling Distribution.PackageDescription (Distribution/PackageDescription.hs, dist/build/Distribution/PackageDescription.o )
Failed to install Cabal-1.20.0.2
cabal: Error: some packages failed to install:
Cabal-1.20.0.2 failed during the building phase. The exception was:
ExitFailure 9
cabal-install-1.20.0.3 depends on Cabal-1.20.0.2 which failed to install.
无法找到有关如何解决此问题的任何内容,错误消息非常模糊。有没有人有指针?这是运行Ubuntu 14.04.1 LTS的VPS(GNU / Linux 3.13.0-43-generic x86_64)
谢谢!
答案 0 :(得分:1)
@ user2407038是对的,退出代码9是由内存不足引起的。升级VPS上的ram解决了这个问题。