我试图使用"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中也遇到了同样的问题,但在构建过程中失败了,并发现该错误已在wxHaskell的Github存储库中更正。
按照Satvik:cabal unpack wxc
的建议,可以通过打开wxc来修复该错误
然后根据上面的Github存储库修改几行代码,然后在wxc目录do:cabal install
中
之后你应该可以做:cabal install vx
作为替代方案,使用针对wxWidgets 2.8:cabal install wx-0.13.2.3
构建的版本
我做了以下操作:
-
sudo apt-get install libwxgtk2.9-0
-
sudo apt-get install libwxgtk2.9-dev
-
cabal install wx-0.13.2.3
并且还可以。