I\'m trying to build xmonad in Mountain Lion to run with Xquartz 2.7.2, tutorial found here .
I\'m using cabal to get required X11 libraries cabal install X11-
The toolchain won't find X11 in /opt
. You need to either install X11 to a place where it can be found by the compiler/linker by default, or pass relevant -I
and -L
flags down to the corresponding tools. I hear this works:
env CPPFLAGS="-I/opt/X11/include" LDFLAGS="-L/opt/X11/lib" your-build-command
though I personally just symlink everything to /usr/{lib,include}
.