Hi! The INSTALL file of the GHC 5.02.2 Linux Binary Dist contains a note that the compiler has been linked against Readline 3 and that this might cause problems on newer Linux distributions, which use Readline 4.
Let me first remark that the same problem occurs with NCurses: GHC ist linked against version 4 while current Red Hat e.g. uses version 5. Now your suggestion to use a symlink libreadline.so.3 -> /usr/lib/libreadline.so.4.x works of cause, but placing this hack-link in /usr/lib _might_ cause problems with other software, and if not this, it's dirty anyway. There is a better solution IMHO: 1) put the symlinks into the "lib/"-directory of the ghc-installation or at another package-specific place, so that no collisions with other software can occure 2) set $LD_LIBRARY_PATH when starting the compiler To show what I mean, I have attached a little script. Bye, Michael
ghc-run.sh
Description: example script