user1023733
user1023733

Reputation: 817

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?

Upvotes: 5

Views: 1083

Answers (2)

Bikash Gyawali
Bikash Gyawali

Reputation: 1048

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.

Upvotes: 1

Mikkel
Mikkel

Reputation: 782

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

Upvotes: 4

Related Questions