Skip to content

Command-line history not working...

2 messages · Henrik Bengtsson, Peter Dalgaard

#
I am trying to build [R] v1.3.1 *locally* on a Sun Solaris 8 machine.
One problem I am currently struggeling with is to make the command-line
history function to work. I have installed GNU readline version 4.2
(latest version). Looking at the "config.log" file it seems that all
readline related checks, e.g. "readline/history.h", passes (they did not
before installing GNU readline).

In [R] almost all GNU readline command-line editing functions work, but I
can't get the history functions (Ctrl+P, Ctrl+N or arrow up and down) to
work. I am missing something, but what? Could you please refer me to a
solution.

Thanks

Henrik Bengtsson

Dept. of Mathematical Statistics @ Centre for Mathematical Sciences 
Lund Institute of Technology/Lund University, Sweden (+2h UTC)
Office: P316, +46 46 222 9611 (phone), +46 46 222 4623 (fax)



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Henrik Bengtsson <hb at maths.lth.se> writes:
Also this one?

checking for rl_callback_read_char in -lreadline..

Two suggestions. One is that you forgot to remove config.cache so that
the test lingers on from before you installed readline. The
other is more insidious, and bit me on Solaris 7 recently using
tools from www.sunfreeware.com: Apparently the shared readline libs
that they ship is incompatible with gcc-3.0.1 so that the test fails
even though readline actually does have rl_callback_read_char. I had
to remove the shared version of the library to make it take.