【发布时间】:2012-03-21 10:20:50
【问题描述】:
运行时出现以下问题
yesod devel 在my application.
开始正常(编译完成),但在预处理可执行文件时出错:
解决依赖关系... 正在配置 WebToKindle-0.0.0... 正在重建应用程序... 由于 config/models 强制重新编译 ./Model.hs 由于 config/routes 强制重新编译 ./Foundation.hs 由于消息/en.msg,强制重新编译 ./Foundation.hs 由于 templates/default-layout-wrapper.hamlet,强制重新编译 ./Foundation.hs 由于模板/default-layout.hamlet,强制重新编译 ./Foundation.hs 由于 templates/homepage.hamlet,强制重新编译 ./Handler/Root.hs 预处理库 WebToKindle-0.0.0... WebToKindle-0.0.0 的预处理可执行文件... 构建 WebToKindle-0.0.0...
Application.hs:22:8: 找不到模块
Network.HTTP.Conduit': It is a member of the hidden packagehttp-conduit-1.2.6'。 也许您需要在 .cabal 文件中的 build-depends 中添加“http-conduit”。 使用 -v 查看搜索的文件列表。构建失败,暂停...
我的应用程序运行 cabal install 工作正常,我能够启动它并在浏览器中浏览到起始页。
所以这个问题似乎只发生在devel 工具上。
我试图注销相关的包并重新安装它们以帮助 cabal 找出依赖关系。
cabal install yesod yesod-auth authenticate http-conduit
很遗憾,这并没有改变任何事情。
由于我想享受“即时满足”发展带来的好处,我感谢任何帮助解决这个问题。
更新:
在修改了一段时间后,在 monadic 的帮助下找到了问题来源,我发现问题在于我已将 cabal 文件中的 cabal 版本更改为 1.8。我将它改回 1.6,现在一切正常。
【问题讨论】: