Skip to content
Prev 1849 / 398506 Next

How do I compile with readline?

Ulf Mehlig <umehlig at uni-bremen.de> writes:
Yes. Trouble #2 is that sometimes the readline version is not recent
enough. According to my fading memory, you need version 2.1 or better
(I have 2.2). The check for rl_callback_read_char by configure is not
an arbitrary sanity check. The callback functions are used by R and
have to be there. (This so that R can work with X graphics events).

A quick check on your library would be along the lines of:

[pd at blueberry r-devel]$ nm /usr/lib/libreadline.so | grep callback
00018320 t _rl_callback_newline
00018370 T rl_callback_handler_install
00018490 T rl_callback_handler_remove
000183d0 T rl_callback_read_char