Version 9 (modified by kowey, 7 years ago)


Installing GenI

  1. I can't cabal install wx:
    • Solution: 2009-02-14: Try
      cabal install wx --configure-opt="--user --enable-split-objs --hcprof
  2. Every time I try to cabal install GenI, it keeps trying to build wxcore (and fails!)
    • This is a tricky one. For some reason cabal-install keeps trying to re-install wx
    • Workaround: 2009-02-14 : install GenI by hand (runhaskell Setup configure --user; runhaskell Setup build; runhaskell Setup install)
  3. I get this error when I try to do runhaskell Setup configure:
    GHCi runtime linker: fatal error: I found a duplicate definition for symbol
    whilst processing object file
    This could be caused by:
       * Loading two different object files which export the same symbol
       * Specifying the same object file twice on the GHCi command line
       * An incorrect `package.conf' entry, causing some object to be
         loaded twice.
    GHCi cannot safely continue in this situation.  Exiting now.  Sorry.
    • Workaround: 2009-02-14: I don't know the proper solution to this yet, but I found that it helps to ghc --make Setup and then call ./Setup instead of runhaskell Setup
  4. I get this error when I run GenI (wxHaskell 0.11 ; wxWidgets 2.8), and GenI refuses to load
    (process:11334): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.18.2/gobject/gtype.c:2458: initialization assertion failed, use IA__g_type_init() prior to this function
    (process:11334): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
    (process:11334): Gdk-CRITICAL **: gdk_cursor_new_for_display: assertion `GDK_IS_DISPLAY (display)' failed
  5. I get this error when I try to run GenI:
    geni: error while loading shared libraries: cannot open shared object file: No such file or directory
    • Solution: 2009-02-14: add the wxhaskell lib directory to your LD_LIBRARY_PATH, for example in bash:
      export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}${HOME}/.cabal/lib/wxhaskell-0.11.1/lib
  6. GenI segfaults

How to do cool things

1. How do I use the paraphrase selection mechanism documented in A Symbolic Approach to Near-Deterministic Surface Realisation using Tree Adjoining Grammar?

  • At the time of this writing (2009-01-22), there is no documentation on this. Sorry. See ParaphraseSelection? and ask Eric Kow for more details.

How to fix a broken GenI