我尝试使用“cabal install wx”在 Haskell Platform 2012.2.0.0 上安装 WX 0.90.0.1,但得到以下结果:
Configuring wxc-0.90.0.4...
setup.exe: wx-config: does not exist
cabal: Error: some packages failed to install:
wx-0.90.0.1 depends on wxc-0.90.0.4 which failed to install.
wxc-0.90.0.4 failed during the configure step. The exception was:
ExitFailure 1
wxcore-0.90.0.3 depends on wxc-0.90.0.4 which failed to install.
有人可以帮忙吗?
最佳答案
我对wxc-0.90.0.4也有同样的问题,但是在构建过程中失败了,发现错误已经在Github repository中得到纠正。对于 wxHaskell。
可以按照 Satvik 的建议通过解压 wxc 来修复该错误。 : cabal 解压 wxc
然后根据上面的Github存储库修改几行代码,然后在wxc目录中执行:cabal install
之后您应该能够执行以下操作:cabal install vx
作为替代方案,使用针对 wxWidgets 2.8 构建的版本:cabal install wx-0.13.2.3
关于haskell - wx 0.90.0.1 无法在 Haskell Platform 2012.2.0.0 (WinXP) 上安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12367480/