简体   繁体   English

Windows上的GHC + wxHaskell

[英]GHC + wxHaskell on Windows

Have GHC 6.8.3 and wxHaskell-0.10.3 on a Windows XP computer. 在Windows XP计算机上安装GHC 6.8.3和wxHaskell-0.10.3。 Installed both as binary distributions, not by building from sources. 都安装为二进制发行版,而不是通过源代码构建。 Built a sample with the following command: 使用以下命令构建示例:

ghc --make Paint.hs 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). 它可以在与其建立的同一台计算机上工作(安装了GHC和wxHaskell),但是如果转移到另一台计算机上(两者都未安装)则失败。 It throws an "Application error" box with "The application failed to initialize properly (0xc0150002). Click OK to terminate the program." 它会引发“应用程序错误”框,并显示“应用程序无法正确初始化(0xc0150002)。单击确定以终止程序。”

The only non-system dll it wanted was wxc-msw2.6.4-0.10.3.dll, which I copied to it's folder. 它想要的唯一非系统dll是wxc-msw2.6.4-0.10.3.dll,我将其复制到它的文件夹中。

What might be the reason? 可能是什么原因?

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. 该错误来自系统期望在Windows目录中WinSxS和SoftwareDistribution等位置安装的DLL清单(可能是带有wxHaskell的第三方清单)中提到的依赖关系。 I am guessing the wxHaskell installation puts the files there. 我猜wxHaskell安装会将文件放在那里。

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: 您甚至可以通过从工作计算机上移动文件来修复它们,但是,如建议的那样 ,VC ++ 2005运行时最有可能-wxHaskell故障排除程序建议您尝试VC ++ 2005 Service Pack 1可再发行组件

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

My guess is, you want to install the VC++ runtime redistributable files onto the target computer. 我的猜测是,您想将VC ++运行时可再发行文件安装到目标计算机上。 The redistributable files for applications built with visual studio 2005 are available from here: 可从以下位置获得使用Visual Studio 2005构建的应用程序的可再发行文件:

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

数据点:适用于XP sp2盒。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM