Yesod GHC版本
我有一个空目录,我使用 yesod init 初始化了 Yesod 0.9.1.1 项目。当我运行“yesod devel”时,出现以下错误:
yesod:您需要重新运行“配置”命令。 Cabal 的版本是 使用已更改(以前是 Cabal-1.10.1.0,现在是 Cabal-1.12.0)。另外还有 编译器不同(以前是 ghc-7.0,现在是 ghc-7.2),这可能是原因 的问题。
我使用 GHC 7.2.1 yesod 是否做了一些棘手的事情来获取不同版本的 GHC 或者我需要做更多配置才能将 GHC 7.2.1 与 yesod 一起使用?如果我运行编译后的二进制文件,它工作正常。这是预期的行为吗?
I have an empty dir that I initialized a Yesod 0.9.1.1 project in using yesod init. When I run "yesod devel" I get the following error:
yesod: You need to re-run the 'configure' command. The version of Cabal being
used has changed (was Cabal-1.10.1.0, now Cabal-1.12.0). Additionally the
compiler is different (was ghc-7.0, now ghc-7.2) which is probably the cause
of the problem.
I use GHC 7.2.1 Is yesod doing something tricky to get a different version of GHC or do I need to do some more configuration to use GHC 7.2.1 with yesod? If I run the compiled binary it works fine. Is this expected behavior?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我在尝试 GHC 7.2 时也收到了同样类型的错误消息。我认为这可能与 cabal(命令行工具)构建所针对的 Cabal(库)版本有关。但我从未直接确定这一点。
I got the same kind of error messages when trying our GHC 7.2 as well. I think it might have to do with the version of Cabal (the library) that cabal (the command line tool) is build against. But I never nailed this down directly.
不,Yesod 本身不会执行任何操作,但您可能安装了多个 GHC 和 Cabal,例如一个全局安装和一个特定于用户的安装。
No, Yesod does not do anything by itself, but you might have multiple installations of GHC and Cabal, for example one global and one user-specific.
我遇到了类似的问题并将其发布在 ServerFault 上(以为是 OT 这里),但没有得到答案。
我最终通过完全重新安装Haskell平台(只有一个版本)解决了这个问题。尝试了从更新 cabal-install 到更新 yesod 到配置命令的所有方法 - 没有任何效果。
最奇怪的事情:我遇到了一些奇怪的路径问题: cabal --version 显示旧版本,如果我直接位于 cabal-bin 路径中,则仅显示新版本...但没有其他 cabal.exe 也没有安装在我的 PATH 变量中我发现……令人讨厌
I had a similiar problem and posted it on ServerFault (thought it was OT here) but got no answer.
I finally solved the issue by a complete reinstallation of the Haskell platform (only one version). Tried everything from updating the cabal-install to updating yesod to configure-command - nothing worked.
Strangest thing: I had some weired path problem: cabal --version showed a old version and only the new one if I was directly in the cabal-bin path ... but there were no other cabal.exe nor installs in my PATH variable that I found ... nasty