Re: RE: One last thing... psql and readline

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: "Michael S(dot) Kelly" <michaelk(at)axian(dot)com>
Cc: Steve Wolfe <steve(at)iboats(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: RE: One last thing... psql and readline
Date: 2000-05-03 23:10:47
Message-ID: Pine.LNX.4.21.0005030059590.362-100000@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Michael S. Kelly writes:

> I've got the same problem with readline and psql using 7.0 RC1.
>
> I found that there was something odd when ran configure. Here's the
> readline stuff I grepped out of config.cache:
>
> ac_cv_header_readline_h=${ac_cv_header_readline_h='no'}
> ac_cv_header_readline_history_h=${ac_cv_header_readline_history_h='yes'}
> ac_cv_header_readline_readline_h=${ac_cv_header_readline_readline_h='yes'}
> ac_cv_lib_readline_main=${ac_cv_lib_readline_main='yes'}
> ac_cv_lib_readline_using_history=${ac_cv_lib_readline_using_history='yes'}
>
> Notice that the first line still says "no". Looks to me like it wants to
> find readline.h in /usr/include, as well as, /usr/include/readline. Could
> this be the source of the problem?

No, this is part of the solution. :) Across various versions of readline
the header files are either #include <readline.h> or #include
<readline/readline.h>, apparently for you the latter is the case.

I'm amazed that this won't enable readline support in psql. You can look
at src/include/config.h if the corresponding macros are defined
(HAVE_READLINE_READLINE_H and HAVE_LIBREADLINE). The other end of this is
src/bin/psql/input.[hc], perhaps you want to run the .c through the
preprocessor and see what happens. What readline version do you have? Did
it work in 6.5.*?

--
Peter Eisentraut Sernanders väg 10:115
peter_e(at)gmx(dot)net 75262 Uppsala
http://yi.org/peter-e/ Sweden

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Zhou, Lixin 2000-05-04 00:11:05 JDBC fails while used from remote machine...
Previous Message cFischer 2000-05-03 23:00:05 Re: Job openings (FreeBSD/C/php/postgresql)