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?
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With