Ross Paterson schrieb: > The X11 and HGL packages won't be built if the system you built Hugs on > lacks an X11 build environment (check hugs98/packages/X11/X11.buildinfo).
For some reason hugs wasn't build with X11 under linux and powerpc-mac for me, although X11 works for ghc. I only have the file: .../lib/hugs/packages/X11/autogen/Paths_X11.hs and I get an error when I use HGL: ERROR ".../lib/hugs/packages/HGL/Graphics/HGL/Internals/Types.hs" - Can't find imported module "Graphics.X11.Xlib" On our pc-solaris machines hugs works correctly, having the following files in lib/hugs/packages/X11/ : Graphics/ LICENSE Paths_X11.hs Nowhere I've found a file X11.buildinfo. I've used the release: http://cvs.haskell.org/Hugs/downloads/2006-09/hugs98-plus-Sep2006.tar.gz and made: ./configure --prefix=... make make install I wonder, how I can make hugs find my X11? (Other packages seem to be okay.) Cheers Christian P.S. eventually I was able to install X11-1.2.20060921 using cabal. (runhugs -98 Setup.hs configure --hugs) Although X11.buildinfo contained: buildable: True cc-options: -I/usr/X11R6/include ld-options: -L/usr/X11R6/lib I had to pass -L/usr/X11R6/lib explicitely (via the --lflag of hsc2hs), in order to avoid: /usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../../i586-suse-linux/bin/ld: cannot find -lX11 collect2: ld returned 1 exit status linking Graphics/X11/Types_hsc_make.o failed Furthermore "runhugs -98 Setup.hs install" failed with: copy dist/build/Graphics/X11/Xlib/Atom.so to ... Program error: <handle>: IO.getContents: protocol error (input contains non-character data - use binary I/O for binary data) But "runghc Setup.hs install" worked. _______________________________________________ Hugs-Users mailing list Hugs-Users@haskell.org http://www.haskell.org/mailman/listinfo/hugs-users