Download
Packages
Windows:
Download: gtk2hs-0.9.13.exe
GHC version 6.8.3 must be installed before installing Gtk2Hs. More detailed installation instructions are available.
Linux and Unix:
- Fedora. included in F7 and FE6 as ghc-gtk2hs.
- Mac OS X. included in MacPorts.
- Gentoo. included in portage as gtk2hs.
- FreeBSD. included in FreshPorts as hs-gtk2hs.
- Debian. included in the ‘unsable’ distribution as libghc6-gtk-dev.
- ArchLinux. A package is in the ArchLinux User-community Repository.
Sources
Download: gtk2hs-0.9.13.tar.gz
Older versions are available from the SourceForge download page.
Requirements
The 0.9.13 release of Gtk2Hs is known to build on Linux, Windows and Solaris. It should also build on MacOS X and FreeBSD.
Building from source requires Gtk+ version 2.0 or later and GHC version 6.4 or later. Pre-built packages usually have stricter requirements.
Optional support for cairo requires cairo 1.0 or later and Gtk+ 2.8.x or later.
Optional support for SVG rendering requires librsvg 2.16 or later.
Optional support for libglade, gtkglext, GConf and GtkSourceView will work with pretty much any version of the corresponding C libraries.
Optional support for the Mozilla rendering engine widget requires an installation of XULRunner, FireFox, SeaMonkey or Mozilla that includes development headers and a pkg-config .pc file. Currently this is not supported on Windows.
The Windows build includes the cairo, glade, gtkglext and sourceview packages but not the svgcairo, gconf or mozembed packages. By building from source it is possible to get the svgcairo package working on Windows. The svgcairo package was not included in the Widows build since they introduce rather a large number of dependencies and would make the installer a much bigger download