I have installed the latest Haskell Platform for MAC OSX and I get the error "Setup: failed to parse output of 'ghc-pkg dump'" when I do anything with Cabal.
So I looked at my versions:
ralphtq$ ghc-pkg list Cabal /Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.1/package.conf.d Cabal-1.8.0.2 ralphtq-mac-mini:cabal-install-0.6.4 ralphtq$ cabal --version cabal-install version 0.6.2 using version 1.6.0.3 of the Cabal library
This is telling me that even though I have Cabal 1.8 the cabal-instal is at version 0.6.2. I have tried to correct that using darcs to get the latest version of cabal-install, but I cannot get passed the error:
ralphtq$ sh bootstrap.sh Checking installed packages for ghc-6.12.1... parsec is already installed and the version is ok. network is already installed and the version is ok. Cabal is already installed and the version is ok. mtl is already installed and the version is ok. HTTP is already installed and the version is ok. zlib is already installed and the version is ok. cleaning... Linking Setup ... Configuring cabal-install-0.9.1... Setup: At least the following dependencies are missing: Cabal ==1.9.*
It is expecting Cabal to be >= 1.9.
I tried to install a previous version of Cabal but got the following error:
... ... [50 of 51] Compiling Distribution.Simple ( Distribution/Simple.hs, Distribution/Simple.o ) [51 of 51] Compiling Main ( Setup.hs, Setup.o ) Linking Setup ... Configuring Cabal-1.6.0.2... Setup: failed to parse output of 'ghc-pkg dump'
I am back to the same problem.
I have also tried a complete re-install of the platform.
What are my next options? Help appreciated, thx.