[Haskell-cafe] build problem (X11 under cabal)

Jens Blanck jens.blanck at gmail.com
Sat Sep 29 14:57:47 EDT 2007

Not being very savvy in building things I got stuck when trying to build
xmonad. It needs X11 1.2.2, so I tried to build that. Configuration step
went fine (I believe), but buiding failed:

> runhaskell Setup.hs build
Preprocessing library X11-1.2.2...
cannot find -lX11
collect2: ld returned 1 exit status
linking Graphics/X11/Types_hsc_make.o failed
command was: /usr/bin/ghc-6.6 -lX11 Graphics/X11/Types_hsc_make.o -o
Setup.hs: got error code while preprocessing: Graphics.X11.Types

I have tried the ghc command seperately with the flag -L/usr/X11R6/lib which
makes it compile. But I cannot figure out how to proceed from here.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20070929/6fc540f8/attachment.htm

More information about the Haskell-Cafe mailing list