[R] configure can't get readline to work

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Tue Feb 11 23:50:04 CET 2003


"Liaw, Andy" <andy_liaw at merck.com> writes:

> Dear R-help,
> 
> I'm running into some strange problem compiling R 1.6.2 on Mandrake Linux
> 9.0.  When I do 
> 
>   ./configure --enable-R-shlib
> 
> I get the following in config.log:
> ===========================
> configure:11366: checking for rl_callback_read_char in -lreadline
> configure:11397: gcc -o conftest -g -O2  -L/usr/local/lib conftest.c
> -lreadline  -ldl -lm  >&5
> /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libreadline.so:
> undefined reference to `tgetnum'
> /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libreadline.so:
> undefined reference to `tgoto'
> /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libreadline.so:
> undefined reference to `tgetflag'
...
> configure:11418: result: no
> =================================
> 
> Does this mean my readline installation is somehow defective?  I've tried
> re-installing readline (and readline-devel) version 4.3-4, to no avail.  Can
> someone give me some hints?

Those are ncurses routines, so if it were RedHat I'd point you towards
the ncurses and ncurses-devel RPMs. Mandrake is usually similar.

(Curiously, on RH, the readline RPM does not require ncurses, even
though the library clearly has symbol references to it...)

-- 
   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




More information about the R-help mailing list