我尝试使用“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.
Run Code Online (Sandbox Code Playgroud)
有人可以帮忙吗?
我在 wxc-0.90.0.4 上遇到了同样的问题,但在构建过程中失败了,并发现该错误已在wxHaskell 的Github 存储库中得到纠正。
该错误可以通过按照Satvik的建议解压 wxc 来修复:cabal unpack wxc
然后根据上面的Github存储库修改几行代码,然后在wxc目录中执行以下操作:cabal install
之后您应该能够执行以下操作:cabal install vx
作为替代方案,使用针对 wxWidgets 2.8 构建的版本:cabal install wx-0.13.2.3