9
votes

I need to install Yesod and dependancies trough Cabal, unfortunately I'm not able to update cabal. Shell output:

...$ 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

Anyone knows how to fix it? Nothing really makes sense to me.

1
if you try a sudo cabal install -v cabal-install ?Rémi Benoit
I have tried this, here's the paste: lpaste.net/94950Swen Mulderij
Which platform are you on? you can try refreshing ghc cache stackoverflow.com/questions/7139263/…Rémi Benoit
Running Mac OSX Maverick. Recaching ghc gave a different output but still failure: lpaste.net/94951Swen Mulderij
Mavericks dropped support for gcc and that's causing some problems for GHC. To find out more take a look here: stackoverflow.com/questions/19579577/…Rodrigo Taboada

1 Answers

1
votes

The solution can be found here: Installing & Building GHC with OSX Mavericks GHC

The commandline tools from apple are required!

Thanks!