让 Cabal 使用 GHC 6.12.1
我已经在 OS X 上安装了最新的 GHC 软件包 (6.12.1),但我无法让 Cabal 工作。我删除了之前与 GHC 6.10 配合使用的版本,并尝试从头开始重新安装。可供下载的最新 Cabal 版本是 1.6.0.2。然而,当我尝试构建这个时,我收到以下错误:
Configuring Cabal-1.6.0.2...
Setup: failed to parse output of 'ghc-pkg dump'
从我发现的搜索来看,这似乎表明 Cabal 的版本对于 GHC 的版本来说太旧了。有什么方法可以让 Cabal 与 GHC 6.12.1 一起工作吗?
编辑:明确地说,我正在尝试设置cabal-install
。
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
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您是否从 Hackage 下载了 cabal-install-0.8.0 ? bootstrap.sh 应该可以与 ghc-6.12.1 一起正常工作。
http://hackage.haskell.org/package/cabal-install
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
GHC 6.12.1 附带 Cabal 1.8.0.2,您无需安装任何额外的东西即可获得它。
只需安装 GHC 6.12.1 并输入 ghc-pkg list Cabal 即可看到。
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.我在 Freenode 的 #Haskell IRC 频道上听到有人说他们的 Cabal-install 从存储库中运行得很好。如果您不想等待下一个版本,您应该能够从 darcs 存储库中获取它。
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.