Hi all, I just upgraded to R-1.8.0. Everything worked fine but command line editing does not work. This clearly indicates that readline has not been found in the compilation process. How could I explicitely indicate where to find it ? I use a Red Hat 8.0 system. I checked the FAQ which says readline-devel is also needed, but I have it already installed. Perhaps should I add the configure option --with-readline=path/to/readline ? >> rpm -qva | grep readline readline-4.3-4 readline-devel-4.3-4 readline41-4.1-14 Is there a problem with that readline41 version ? Thanks in advance, Laurent
Laurent Faisnel <laurent.faisnel at ariase.com> writes:> Hi all, > > I just upgraded to R-1.8.0. Everything worked fine but command line > editing does not work. This clearly indicates that readline has not > been found in the compilation process. > > How could I explicitely indicate where to find it ? > > I use a Red Hat 8.0 system. I checked the FAQ which says > readline-devel is also needed, but I have it already installed. > Perhaps should I add the configure option > --with-readline=path/to/readline ? > > >> rpm -qva | grep readline > readline-4.3-4 > readline-devel-4.3-4 > readline41-4.1-14 > > Is there a problem with that readline41 version ?It shouldn't get used. This should work cleanly on RH8.0 and does for me. Best idea I can come up with is to clean up, reconfigure, and check the out put and configure log for some anomaly in your local configuration (paths, something hardcoding --without-readline, etc.). -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
The problem is solved. I cc this mail to John who probably had the same kind of problem. Peter Dalgaard wrote:> Laurent Faisnel <laurent.faisnel at ariase.com> writes: >That's the part of the log where you have the debug information (at the top) :> >>configure:11773: gcc -o conftest -g -O2 -L/usr/local/lib conftest.c >>-lreadline -ldl -lm >&5 >>/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libreadline.so: >>undefined reference to `tgetnum' >>/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libreadline.so: >>undefined reference to `tgoto' >>/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libreadline.so: >>undefined reference to `tgetflag' >>/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libreadline.so: >>undefined reference to `BC' >>/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libreadline.so: >>undefined reference to `tputs' >>/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libreadline.so: >>undefined reference to `PC' >>/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libreadline.so: >>undefined reference to `tgetent' >>/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libreadline.so: >>undefined reference to `UP' >>/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libreadline.so: >>undefined reference to `tgetstr' > > > Oho... I think those routines are from libncurses,I'm very impressed by your intuition (or memory). That's exactly where the problem was.> so you might be > needing > > ncurses-5.2-28I already had this one installed. Not sufficient.> ncurses-devel-5.2-28But not this one. Once it is installed, evrything works fine and I have a readline-enabled R version.> > (not sure you really need the last one, but...) >It's really needed. More info : dbforums.com/arch/147/2002/12/608415 (exactly the same) Peter : Thanks a lot. John : Hope it's a solution to your problem too. - Laurent