- #MAC OS BREW INSTALL XQUARTZ HOW TO#
- #MAC OS BREW INSTALL XQUARTZ MAC OS X#
- #MAC OS BREW INSTALL XQUARTZ UPDATE#
- #MAC OS BREW INSTALL XQUARTZ UPGRADE#
- #MAC OS BREW INSTALL XQUARTZ FULL#
Sudo port upgrade packagename -enforce-variants +universalĪlternatively, and this is recommended, you can follow the steps on Haskell On Snow Leopard Blogpost to immediately add the universal variant of each package: NB: If compiling fails with architecture errors for certain dynlibs, you need to reinstall the packages these dynlibs belong to with +universal by doing If all went well, it should be properly installed now. In this file, you need to search for "gthread", and everywhere you can find it, add "/opt/local/lib" (with quotes) to the libraryDirs array before it.
#MAC OS BREW INSTALL XQUARTZ FULL#
In the output you will see the full directory to your nf file. You will need to find nf for your installed GHC by running Unfortunately, to build any libraries depending on Gtk2Hs, such as Chart, you need to edit one more file. Right now you should be able to run the demos. configure -with-pkgconf=/Users/$USER/.ghc/i386-darwin-6.10.4/nf -prefix=/Users/$USER/Library/Haskell/packages/gtk2hs -disable-split-objs -disable-gio
#MAC OS BREW INSTALL XQUARTZ MAC OS X#
configure -disable-split-objs -disable-gioĪlternatively, if you wish to follow the Mac OS X style of directory layout, you can use this configure command instead: Go to the directory where gtk2hs is untarred and run.from MacPorts like this (note that the +universal is needed if you already installed gtk or one of its dependencies, it is recommended you reinstall those as detailed in the NB at the end of this section). Download gtk2hs from Gtk2Hs website and untar it.
#MAC OS BREW INSTALL XQUARTZ HOW TO#
This explains how to install Gtk2Hs-0.10.1 on Mac OS X 10.6 Snow Leopard, in combination with GTK+ from MacPorts.
In the above step 3 (cabal install gtk) I had errors that were resolved by:Ĥ.1 Fixing any detail reported by "brew doctor"Ĥ.2. This OS release uses xquartz project X11 implementation, that may yield errors while building the package. configure -prefix /usr/local/stow/freetype-2.4.8 These instructions come from a gist by Carter Schonwaldġ. However, it will not work with gcc versions <= 4.2.Įxport PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig Install Haskell GTK with gcc 4.8, it might work with other versions of gcc that you already have installed. If the window does not open you might have forgotten to logout and login.Ĥ. Verify whether gtk installed correctly by executing gtk-demo. Install the gtk library and dependenciesīrew install glib cairo gtk gettext fontconfig Install XQuartz ( download) at the time these instruction were written version 2.7.5 worked.Ģ.
Unfortunately, if you have an older 32bit version these instructions will work but all the programs using gtk will fail to compile.ġ. Make sure that the system you are using has the 64bit version of the Haskell platform installed.
#MAC OS BREW INSTALL XQUARTZ UPDATE#
These instructions are an update of the HomeBrew installation shown below (2008) for Mavericks. HomeBrew OS X Mavericks (64 bit, last checked 2014-05) Otherwise compiling gtk will fail.Īt the time of writing, the versions installed with these commands are alex-3.1.7, happy-1.19.5, gtk2hs-buildtools-0.13.2.1, glib-0.13.4.0, gtk-0.14.5. Make sure you install the gtk package with the flag -f have_quartz-gtk. If they are not installed separately, compiling them fails. The same goes for glib with respect to gtk. For some reason, they must be installed separately prior to installing gtk2hs-buildtools. The packages alex and happy are dependencies of dependencies of ghk2hs-buildtools. Set an environment variable to allow pkg-config to find the file gtk+-2.0.pc (mine is located at /usr/local/lib/pkgconfig):Įxport PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:Ĥ. Install GTK and the required librariesīrew install glib cairo gtk gettext fontconfig freetypeģ. Install XQuartz (version 2.7.9 at the time of writing):Ģ. HomeBrew OS X El Capitan (64 bit, last checked 2016-08)ġ.