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

回眸只為那壹抹淺笑 提交于 2019-12-22 08:48:00

问题


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 :

  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.



来源:https://stackoverflow.com/questions/12367480/wx-0-90-0-1-fails-to-install-on-haskell-platform-2012-2-0-0-winxp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!