Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

wx 0.90.0.1 fails to install on Haskell Platform 2012.2.0.0 (WinXP)

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?

like image 357
user1023733 Avatar asked Sep 11 '12 10:09

user1023733


2 Answers

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

like image 163
Mikkel Avatar answered Nov 04 '22 00:11

Mikkel


I did the following :

  1. sudo apt-get install libwxgtk2.9-0

  2. sudo apt-get install libwxgtk2.9-dev

  3. cabal install wx-0.13.2.3

and it was OK.

like image 28
Bikash Gyawali Avatar answered Nov 04 '22 00:11

Bikash Gyawali