cabal 安装 mime 失败

发布于 2024-10-25 03:30:49 字数 678 浏览 4 评论 0原文

我最近得到了 Mac OS X 的 Haskell 平台。我安装了一些软件包,然后得到了这个错误,我不明白。似乎说我需要 4 的版本,但我确实有。

> cabal install mime  
Resolving dependencies...  
cabal: cannot configure mime-0.3.2. It requires base >=3 && <=4  
For the dependency on base >=3 && <=4 there are these packages: base-3.0.3.1  
and base-3.0.3.2. However none of them are available.  
base-3.0.3.1 was excluded because of the top level dependency base -any  
base-3.0.3.2 was excluded because of the top level dependency base -any  

如果我运行cabal info base,它会显示很多行,但其中一行是:

Versions installed: (4.3.1.0)

这不满足 mime 的 <=4 要求?

I recently got the Haskell Platform for Mac OS X. I've cabal installed a few packages, and then got this error, which I don't understand. It seems to say I need version for 4 of base, but I do have that.

> cabal install mime  
Resolving dependencies...  
cabal: cannot configure mime-0.3.2. It requires base >=3 && <=4  
For the dependency on base >=3 && <=4 there are these packages: base-3.0.3.1  
and base-3.0.3.2. However none of them are available.  
base-3.0.3.1 was excluded because of the top level dependency base -any  
base-3.0.3.2 was excluded because of the top level dependency base -any  

If I run cabal info base it shows many lines, but one of them is:

Versions installed: (4.3.1.0)

That doesn't satisfy the <=4 requirement of mime?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

捎一片雪花 2024-11-01 03:30:49

4.3.1.0 大于 4(即 4.0.0.0)。在这些情况下,我:

  1. cabal unpack ,编辑 .cabal 文件以修复基本构建 dep,运行 cabal install
  2. 向维护人员发送一封措辞礼貌的电子邮件。我发现最近很难联系到 Sigbjorn(我听说)。如果他在几周内没有回复,我会考虑自己更新软件包并发送另一封礼貌的电子邮件(只要更改是这样小而微不足道的)。

4.3.1.0 is greater than 4 (which means 4.0.0.0). In these cases I:

  1. cabal unpack , edit the .cabal file to fix the base build dep, run cabal install
  2. Send a politely worded e-mail to the maintainer. I see it's Sigbjorn who has been hard to reach of late (I hear). If he doesn't respond in a few weeks I'd consider updating the package yourself and send another polite e-mail (so long as the change is this small and trivial).
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文