cabal 安装 yesod 失败?

发布于 2024-10-06 14:13:56 字数 1039 浏览 5 评论 0原文

Haskell 包依赖仍然是一个问题,但我不知道如何解决这个问题。我的环境:

  • Ubuntu 10.10,全新安装
  • apt-get install ghc6 cabal-install
  • cabal update && cabal install cabal-install

然后:

  • cabal install yesod

我得到这个:

$ cabal install yesod
cabal: Error: some packages failed to install:
persistent-0.3.1.2 failed during the building phase. The exception was:
ExitFailure 1
yesod-0.6.6 depends on persistent-0.3.1.2 which failed to install.
$ cabal install persistent-0.3.1.2
Resolving dependencies...
cabal: cannot configure blaze-builder-0.2.0.2. It requires text ==0.10.*
For the dependency on text ==0.10.* there are these packages: text-0.10.0.0,
text-0.10.0.1 and text-0.10.0.2. However none of them are available.
text-0.10.0.0 was excluded because enumerator-0.4.3.1 requires text ==0.11.*
text-0.10.0.1 was excluded because enumerator-0.4.3.1 requires text ==0.11.*
text-0.10.0.2 was excluded because enumerator-0.4.3.1 requires text ==0.11.*

如何安装 yesod?

Haskell package dependencies continue to be a problem but I don't know how to get around this one. My environment:

  • Ubuntu 10.10, new install
  • apt-get install ghc6 cabal-install
  • cabal update && cabal install cabal-install

Then:

  • cabal install yesod

And I get this:

$ cabal install yesod
cabal: Error: some packages failed to install:
persistent-0.3.1.2 failed during the building phase. The exception was:
ExitFailure 1
yesod-0.6.6 depends on persistent-0.3.1.2 which failed to install.
$ cabal install persistent-0.3.1.2
Resolving dependencies...
cabal: cannot configure blaze-builder-0.2.0.2. It requires text ==0.10.*
For the dependency on text ==0.10.* there are these packages: text-0.10.0.0,
text-0.10.0.1 and text-0.10.0.2. However none of them are available.
text-0.10.0.0 was excluded because enumerator-0.4.3.1 requires text ==0.11.*
text-0.10.0.1 was excluded because enumerator-0.4.3.1 requires text ==0.11.*
text-0.10.0.2 was excluded because enumerator-0.4.3.1 requires text ==0.11.*

How do I get yesod installed?

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

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

发布评论

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

评论(4

缺⑴份安定 2024-10-13 14:13:56

要查看更多详细信息,请添加 -v (甚至 -v2 或 -v3)以及 --dry-run。使用 ghc-pkg 列表查看当前安装的内容也很有用。

当你升级持久性时,cabal 决定它还应该重建依赖于它的现有 yesod。这会触发 blaze-builder 升级。 blaze-builder 需要比正在安装的 enumerator 更旧的文本。

http://hackage.haskell.org/package/enumerator 声称也支持旧的文本版本为 0.11。但不知怎的,阴谋集团已经被智胜了。详细的输出可能会告诉您更多信息,或者看看您是否可以通过一个或两个 --constraint 来帮助它。或者首先卸载一些相关的软件包,例如 yesod。当然,请确保您已经完成了阴谋集团更新。

To see more details, add -v (or even -v2 or -v3) and perhaps --dry-run. Also it's useful to see what's currently installed, with ghc-pkg list.

When you upgrade persistent, cabal decides it should also rebuild your existing yesod which depends on it. This triggers a blaze-builder upgrade. blaze-builder requires an older text than enumerator which is also being installed.

http://hackage.haskell.org/package/enumerator claims to support older text versions as well as 0.11. But cabal has been outwitted somehow. The verbose output may tell more, or see if you can help it along with a --constraint or two. Or by first uninstalling some related packages, like yesod. And of course be sure you have done cabal update.

那小子欠揍 2024-10-13 14:13:56

yesod 正在大力开发中。向 michael snoyman 发送电子邮件(可以在此处找到联系信息),他对请求非常敏感

yesod is under heavy development. email michael snoyman (contact info can be found here), he is very responsive to requests

谎言 2024-10-13 14:13:56

存在依赖性中断。将此作为错误报告给包的作者。也可以考虑手动下载并安装旧版本的枚举器。

There is a dependency-break. Report this as an error to the author of the package. Consider downloading and installing an older version of enumerator manually, too.

南笙 2024-10-13 14:13:56

我在这里找到了一些有关更好安装过程的信息:

https://github.com/yesodweb/yesod

看看关于 cabal-src 的部分。

我正在尝试。

我会回来报告,并让人们知道它是否有效。

I found some information about a better install process here:

https://github.com/yesodweb/yesod

Look for the section about cabal-src.

I'm in the process of trying it out.

I'll report back, and let people know if it works.

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