让 Cabal 使用 GHC 6.12.1

发布于 2024-08-15 07:35:01 字数 397 浏览 4 评论 0原文

我已经在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

荒路情人 2024-08-22 07:35:01

您是否从 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

撩心不撩汉 2024-08-22 07:35:01

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.

会傲 2024-08-22 07:35:01

我在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文