将 ghc 升级到 7.0.3 会破坏 wai-handler-devel

发布于 2024-11-18 04:10:36 字数 571 浏览 3 评论 0原文

我正在 Yesod 框架上开发一个 Web 应用程序,使用 wai-handler-devel 来运行服务器。

pacman -Syu(在 Arch Linux 上)将 ghc 从 7.0.2 升级到 7.0.3,现在服务器抛出异常。

$ wai-handler-devel 3000 App.Controller withAppSimple
Attempting to interpret your app...
wai-handler-devel: /usr/lib/ghc-7.0.2/package.conf.d/package.cache:
openBinaryFile: does not exist (No such file or directory)

经过一番挖掘后,我意识到该文件存在于 /usr/lib/ghc-7.0.3/package.conf.d/ 中,因此我将该文件夹重命名为 ghc-7.0。 3 希望这至少能暂时解决问题(直到我们的 Haskell 人员度假回来)。

任何关于从哪里开始的建议都会非常有帮助。谢谢!

I'm developing a web app on Yesod framework, using wai-handler-devel to run the server.

A pacman -Syu (on Arch Linux) upgraded ghc from 7.0.2 to 7.0.3 and now the server throws an exception.

$ wai-handler-devel 3000 App.Controller withAppSimple
Attempting to interpret your app...
wai-handler-devel: /usr/lib/ghc-7.0.2/package.conf.d/package.cache:
openBinaryFile: does not exist (No such file or directory)

After a bit of digging I realized that the file existed in /usr/lib/ghc-7.0.3/package.conf.d/, so I renamed that folder to ghc-7.0.3 in the hopes that that would at least temporarily solve the problem (until our Haskell-guy comes back from holiday).

Any suggestion on where to even begin would be very helpful. Thanks!

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

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

发布评论

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

评论(1

記憶穿過時間隧道 2024-11-25 04:10:36

当您升级 ghc 版本(不仅仅是 wai-handler-devel)时,您需要重新安装所有软件包。您也可以删除所有旧的。

you need to re-install all your packages when you upgrade a ghc version (not just wai-handler-devel). You may as well delete all the old ones.

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