2010-05-15 92 views
1

我已经安装了最新的Haskell Platform for MAC OSX,并且出现“Setup:failed to parse output of'ghc-pkg dump''”对Cabal做任何事情。如何让Haskell平台的ghc-pkg在MAC OSX上工作

所以我看了看我的版本:

 
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 

这是告诉我,即使我有惊天动地1.8小集团-INSTAL是0.6.2版本。我试图纠正使用的darcs获取最新版本小集团安装,但我不能获得通过的错误:

 
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。

我试图安装惊天动地的早期版本,但得到了以下错误:

 
... 
... 
[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' 

我回了同样的问题。

我也尝试了一个完整的平台重新安装。

我的下一个选择是什么?帮助赞赏,thx。

回答

2

要么你安装了旧版本的Haskell平台,要么你有一个已经安装在现有旧版安装的顶部的混合环境,现在混合使用6.10版本的ghc-pkg版本.x和6.12.x

尝试删除那些ghc-pkg和cabal二进制文件,然后安装平台。这样你就不会有那些旧的可执行文件在附近。

+0

谢谢Don - 我会试一试 - 在几个小时内回复 – ralphtq 2010-05-15 20:09:32

+0

解决方案更简单 - 从Hackage安装Cabal-install-0.8.2 - 而不是使用darcs - 谢谢 – ralphtq 2010-05-15 20:42:26

相关问题