Я установил последнюю версию Haskell Platform для MAC OSX и получаю сообщение об ошибке «Setup: не удалось проанализировать вывод« ghc-pkg dump »», когда я что-то делаю с Cabal.
Итак, я посмотрел свои версии:
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
Это говорит мне о том, что хотя у меня Cabal 1.8, cabal-installer имеет версию 0.6.2. Я пытался исправить это, используя darcs, чтобы получить последнюю версию cabal-install, но не могу передать ошибку:
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.*
Ожидается, что Кабал будет> = 1,9.
Я пытался установить предыдущую версию Cabal, но получил следующую ошибку:
...
...
[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'
Я вернулся к той же проблеме.
Я также попытался полностью переустановить платформу.
Какие у меня следующие варианты? Помощь оценена, спасибо.