无法将 cabal 从 1.16 更新到 1.18
Can't update cabal from 1.16 to 1.18
我安装了 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
returns同上。我随后从 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.
找不到任何关于如何解决这个问题的信息,而且错误信息非常模糊。有人有任何指示吗?这是在 VPS 运行ning Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-43-generic x86_64)
谢谢!
@user2407038 是对的,退出代码 9 是由 运行 内存不足引起的。升级 VPS 上的 ram 解决了这个问题。
我安装了 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
returns同上。我随后从 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.
找不到任何关于如何解决这个问题的信息,而且错误信息非常模糊。有人有任何指示吗?这是在 VPS 运行ning Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-43-generic x86_64)
谢谢!
@user2407038 是对的,退出代码 9 是由 运行 内存不足引起的。升级 VPS 上的 ram 解决了这个问题。