Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> It appears your readline needs -ltermcap, -lterminfo, or -lcurses to
> link properly. I think this happens when the readline library is not
> linked against those when it is created.
On Red Hat 8.0, readline depends on -ltermcap. I would imagine the same
is true on RH9, but haven't got it installed personally.
If you don't have termcap (and possibly termcap-devel, not sure if
that's needed) then configure should detect the missing dependency.
Maybe it did --- you didn't show us enough of config.log to see what
happened.
regards, tom lane