4
votes

I'm trying to install Yesod on my Mac (running Mavericks), but installation fails because of an error installing Persistent. Specifically, cabal install persistent yields:

Failed to install persistent-1.3.0.2
Updating documentation index /Users/Max/Library/Haskell/doc/index.html
cabal: Error: some packages failed to install:
persistent-1.3.0.2 failed during the building phase. The exception was:
ExitFailure 11

(The full output is available as a gist)

I don't think this is an issue with conflicts, because I ran rm -rf ~/.ghc ~/.cabal before trying this (though I think 3 globally installed packages might not have been erased—unsure).

I'm using the latest Haskell Platform with the ghc-clang-wrapper script.

Cabal versions:

$ cabal --version
cabal-install version 1.16.0.2
using version 1.16.0 of the Cabal library

GHC version:

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.6.3
1
How did you install your yesod ?Sibi
You should update your cabal, and remember to use install yesod-platform (if you weren't already doing that)Tehnix
The error is a type mismatch. I looked at it briefly yesterday, but got nowhere. It looks like one of the libraries that persistent depends on changed its API.Ralph
@Ralph could this possibly be Aeson? I heard it started breaking some things with ~0.7 or smthTehnix

1 Answers

1
votes

Reinstalling Haskell platform allowed me to install Persistent, but the real issue was that I needed to install gcc48. Installing this cleared everything up. https://stackoverflow.com/a/21285413/1176156