[Haskell-cafe] Mac and Gtk2hs problem

Heinrich Apfelmus apfelmus at quantentunnel.de
Thu Jun 7 14:40:51 CEST 2012


Tanja Piechnick wrote:
> All right. 
> After a re-installation I could load my GTK2HS example successfully. 
> But I received another error. What is the meaning of that?
> 
> A wrong architecture? 
> 
> Prelude> :l guitest.hs 
> [1 of 1] Compiling Main             ( guitest.hs, interpreted )
> Ok, modules loaded: Main.
> *Main> main
> Loading package transformers-0.2.2.0 ... linking ... done.
> Loading package mtl-2.0.1.0 ... linking ... done.
> Loading package array-0.3.0.2 ... linking ... done.
> Loading package containers-0.4.0.0 ... linking ... done.
> Loading package bytestring-0.9.1.10 ... linking ... done.
> Loading package cairo-0.12.3.1 ... linking ... done.
> Loading package glib-0.12.3.1 ... can't load .so/.DLL for: intl (dlopen(/usr/local/Cellar/gettext/0.18.1.1/lib/libintl.dylib, 9): no suitable image found.  Did find:
> 	/usr/local/Cellar/gettext/0.18.1.1/lib/libintl.dylib: mach-o, but wrong architecture)
> *Main> 

That's a 64bit / 32bit problem. The gtk library you installed via 
homebrew is probably 64bit while the GHC you use (7.0.4) seems to be 
32bit. Either you reinstall GTK with 32bit support, or you use the 64bit 
version of the recently released Haskell Platform.


Best regards,
Heinrich Apfelmus

--
http://apfelmus.nfshost.com




More information about the Haskell-Cafe mailing list