将 ghc 升级到 7.0.3 会破坏 wai-handler-devel
我正在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您升级 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.