Linux-Binary: Suggestion: Better solution for libreadline.3 problem

Michael Schneider m_schnei at informatik.uni-frankfurt.de
Fri Apr 12 11:15:53 EDT 2002


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ghc-run.sh
Type: application/x-sh
Size: 639 bytes
Desc: example script
Url : http://www.haskell.org/pipermail/glasgow-haskell-bugs/attachments/20020412/72ce8ebb/ghc-run.sh


More information about the Glasgow-haskell-bugs mailing list