Question

I've installed the latest GHC package (6.12.1) on OS X, but I can't get Cabal to work. I've removed the version I had previously that worked with GHC 6.10 and tried to re-install from scratch. The latest Cabal version available for download is 1.6.0.2. However, when I try to build this I get the following error:

Configuring Cabal-1.6.0.2...
Setup: failed to parse output of 'ghc-pkg dump'

From what I've found searching, this seems to suggest that the version of Cabal is too old for the version of GHC. Is there any way to get Cabal to work with GHC 6.12.1 yet?

EDIT: To be clear, I'm trying to set-up cabal-install.

Was it helpful?

Solution

GHC 6.12.1 comes with Cabal 1.8.0.2, you don't need to install anything extra to get it.

Just install GHC 6.12.1 and type ghc-pkg list Cabal and you'll see.

OTHER TIPS

Have you downloaded cabal-install-0.8.0 from Hackage? The bootstrap.sh should work correctly with ghc-6.12.1.

http://hackage.haskell.org/package/cabal-install

I heard someone on the #Haskell IRC channel on Freenode say that they had Cabal-install working fine from the repositories. If you don't want to wait for the next release, you should be able to get it from the darcs repo.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top