GHC + Windows 上的 wxHaskell

发布于 2024-07-09 11:30:56 字数 343 浏览 11 评论 0原文

Windows XP 计算机上有 GHC 6.8.3 和 wxHaskell-0.10.3。 两者都作为二进制发行版安装,而不是通过源代码构建。 使用以下命令构建一个示例:

ghc --make Paint.hs

它可以在构建它的同一台计算机上运行(安装了 GHC 和 wxHaskell),但如果转移到另一台计算机(没有安装它们),则会失败。 它会抛出一个“应用程序错误”框,其中显示“应用程序无法正确初始化(0xc0150002)。单击“确定”终止程序。”

它想要的唯一非系统 dll 是 wxc-msw2.6.4-0.10.3.dll,我将其复制到它的文件夹中。

可能是什么原因?

Have GHC 6.8.3 and wxHaskell-0.10.3 on a Windows XP computer. Installed both as binary distributions, not by building from sources. Built a sample with the following command:

ghc --make Paint.hs

It works on that same computer it was built on (with GHC and wxHaskell installed), but fails if transferred to another one (with neither of them installed). It throws an "Application error" box with "The application failed to initialize properly (0xc0150002). Click OK to terminate the program."

The only non-system dll it wanted was wxc-msw2.6.4-0.10.3.dll, which I copied to it's folder.

What might be the reason?

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

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

发布评论

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

评论(3

初熏 2024-07-16 11:30:56

该错误来自 DLL 清单中提到的依赖项(可能是带有 wxHaskell 的第三方),您的系统期望将其安装在 Windows 目录中的 WinSxS 和 SoftwareDistribution 等位置。 我猜 wxHaskell 安装将文件放在那里。

您可以通过查看故障计算机上的事件查看器来找到程序正在查找的文件。 您甚至可以通过从工作计算机中移动文件来修复它们,但是,正如建议的那样,VC++ 2005 运行时是最有可能的 - wxHaskell 疑难解答 建议您尝试 VC++ 2005 service pack 1 可再发行组件:

http://www.microsoft.com/downloads/details.aspx?FamilyID=200b2fd9-ae1a-4a14 -984d-389c36f85647&DisplayLang=en

The error comes from dependencies that are mentioned in the manifests of DLL's (presumably the third-party ones with wxHaskell) that your system is expecting to find installed in places such as WinSxS and SoftwareDistribution in your Windows directory. I am guessing the wxHaskell installation puts the files there.

You may be able to find what files the program is looking for by looking in the event viewer on the failed machine. You may even be able to fix them by moving the files from a working machine, However, VC++ 2005 runtimes are the most likely, as suggested - the wxHaskell troubleshooter suggests you try the VC++ 2005 service pack 1 redistributables:

http://www.microsoft.com/downloads/details.aspx?FamilyID=200b2fd9-ae1a-4a14-984d-389c36f85647&DisplayLang=en

愁杀 2024-07-16 11:30:56

我的猜测是,您想要将 VC++ 运行时可再发行文件安装到目标计算机上。 使用 Visual Studio 2005 构建的应用程序的可再发行文件可从此处获取:

http://www.microsoft.com/downloads/details.aspx?familyid=32bc1bee-a3f9-4c13-9c99-220b62a191ee&displaylang=zh

My guess is, you want to install the VC++ runtime redistributable files onto the target computer. The redistributable files for applications built with visual studio 2005 are available from here:

http://www.microsoft.com/downloads/details.aspx?familyid=32bc1bee-a3f9-4c13-9c99-220b62a191ee&displaylang=en

一笔一画续写前缘 2024-07-16 11:30:56

Datapoint:适用于我的 XP sp2 机器。

Datapoint: Works for me on an XP sp2 box.

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