问题
I tried to install WX 0.90.0.1 on Haskell Platform 2012.2.0.0 using "cabal install wx" but got the following result:
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.
Can anyone help?
回答1:
I had the same problem with wxc-0.90.0.4, but failed during the build process and found that the error had been corrected in the Github repository for wxHaskell.
The error can be fixed by unpacking wxc as suggested by Satvik: cabal unpack wxc
Then modify the few lines of code as per the Github repository above and then in the wxc directory do: cabal install
After that you should be able to do: cabal install vx
As an alternative use the version that is built against wxWidgets 2.8: cabal install wx-0.13.2.3
回答2:
I did the following :
sudo apt-get install libwxgtk2.9-0
sudo apt-get install libwxgtk2.9-dev
cabal install wx-0.13.2.3
and it was OK.
来源:https://stackoverflow.com/questions/12367480/wx-0-90-0-1-fails-to-install-on-haskell-platform-2012-2-0-0-winxp