[Haskell-beginners] wxHaskell install errors

Heinrich Apfelmus apfelmus at quantentunnel.de
Wed Jun 6 16:20:13 CEST 2012

Gregory Guthrie wrote:
> I had all of the wxHaskell programs installed and working fine, but now with an update to Haskell Platform and thus also ghci, I need to upgrade all of them (the previously working programs fail) requiring an update for the underlying wxWidgets from 2.8 to 2.9 versions.
> I downloaded and built wxWidgets 2.9, since the current wxHaskell
> libraries require it (I couldn't find any existing binaries online).
> The compile seemed to be successful, but when I then try to use it
> from the wxHaskell programs I get an error that I don't know how to fix:
> C: >cabal install wx
> Resolving dependencies...
> [1 of 1] Compiling Main             ( C:\Users\guthrie\AppData\Local\Temp\wxc-0.
> 90.0.3-7324\wxc-\Setup.hs, C:\Users\guthrie\AppData\Local\Temp\wxc-0.90.
> 0.3-7324\wxc-\dist\setup\Main.o ) Linking C:\Users\guthrie\AppData\Local\Temp\wxc-\wxc-\dist\
> setup\setup.exe ...
> Configuring wxc-
> Configuring wxc to build against wxWidgets 2.9
> setup.exe: Missing dependencies on foreign libraries:
> * Missing C libraries: wxmsw29ud_all, wxtiffd, wxjpegd, wxpngd, wxzlibd,wxregexud, wxexpatd, wxregexud This problem can usually be solved by installing the system packages that provide these libraries (you may need the "-dev" versions). If the libraries are already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.
> cabal: Error: some packages failed to install:
> wx- depends on wxc- which failed to install.
> wxc- failed during the configure step. The exception was: ExitFailure 1
> wxcore- depends on wxc- which failed to install.

Are you sure that you installed wxWidgets 2.9 and didn't just compile it 
from source? It looks like cabal can't find the wxWidgets libraries on 
your system.

Best regards,
Heinrich Apfelmus


More information about the Beginners mailing list