Cabal Cabal-安装不起作用,奇怪的错误

时间:2013-10-29 08:03:42

标签: haskell cabal haskell-platform

我需要通过Cabal安装Yesod和依赖项,遗憾的是我无法更新cabal。 Shell输出:

...$ sudo cabal install cabal-install 
Resolving dependencies...
Configuring cabal-install-1.18.0.2...

/tmp/24453.c:1:12:
     warning: control reaches end of non-void function [-Wreturn-type]
int foo() {}
           ^
1 warning generated.
Building cabal-install-1.18.0.2...
Preprocessing executable 'cabal' for cabal-install-1.18.0.2...
<command line>: cannot satisfy -package-id HTTP-4000.2.8-cdf033f9d7051824f52cd5101df67509
    (use -v for more information)
Failed to install cabal-install-1.18.0.2
cabal: Error: some packages failed to install:
cabal-install-1.18.0.2 failed during the building phase. The exception was:
ExitFailure 1

任何人都知道如何修复它?对我来说没有任何意义。

1 个答案:

答案 0 :(得分:1)

可以在此处找到解决方案:Installing & Building GHC with OSX Mavericks GHC

Apple需要使用命令行工具!

谢谢!