[R] Readline on R-1.9.1a

Roger D. Peng rpeng at jhsph.edu
Mon Jun 14 21:53:02 CEST 2004


If you've got the required rpm's installed (and they install in the 
usual locations), you should not need the --with-readline flag.  Try 
running configure with out it.

-roger

Kevin Bartz wrote:
> Hello! I'm trying to install R-1.9.1a with readline on Suse Linux. As
> recommended in other posts, I've installed readline and readline-devel:
> 
>  
> 
> kevin at redtail:~/R-1.9.1> rpm -qa | grep readline
> 
> readline-devel-32bit-9.0-0
> 
> readline-32bit-9.0-0
> 
> readline-4.3-207
> 
> readline-devel-4.3-207
> 
>  
> 
> Then I run configure with readline:
> 
>  
> 
> ./configure --with-readline
> 
>  
> 
> The relevant lines are:
> 
>  
> 
> kevin at redtail:~/R-1.9.1> ./configure --with-readline | grep readline
> 
> checking for rl_callback_read_char in -lreadline... no
> 
> checking readline/history.h usability... yes
> 
> checking readline/history.h presence... yes
> 
> checking for readline/history.h... yes
> 
> checking readline/readline.h usability... yes
> 
> checking readline/readline.h presence... yes
> 
> checking for readline/readline.h... yes
> 
>  
> 
> In config.log all readline tests pass except this one:
> 
>  
> 
> configure:21277: checking for rl_callback_read_char in -lreadline
> 
> configure:21307: gcc -o conftest -g -O2 -I/usr/local/include
> -L/usr/local/lib conftest.c \
> 
> -lreadline  -ldl -lm  >&5
> 
> /usr/local/lib/libreadline.so: undefined reference to `tgetnum'
> 
> /usr/local/lib/libreadline.so: undefined reference to `tgoto'
> 
> /usr/local/lib/libreadline.so: undefined reference to `tgetflag'
> 
> /usr/local/lib/libreadline.so: undefined reference to `BC'
> 
> /usr/local/lib/libreadline.so: undefined reference to `tputs'
> 
> /usr/local/lib/libreadline.so: undefined reference to `PC'
> 
> /usr/local/lib/libreadline.so: undefined reference to `tgetent'
> 
> /usr/local/lib/libreadline.so: undefined reference to `UP'
> 
> /usr/local/lib/libreadline.so: undefined reference to `tgetstr'
> 
> collect2: ld returned 1 exit status
> 
> configure:21313: $? = 1
> 
> configure: failed program was:
> 
> | /* confdefs.h.  */
> 
> |
> 
> | #define PACKAGE_NAME "R"
> 
> | #define PACKAGE_TARNAME "R"
> 
> | #define PACKAGE_VERSION "1.9.1"
> 
> | #define PACKAGE_STRING "R 1.9.1"
> 
> | #define PACKAGE_BUGREPORT "r-bugs at R-project.org"
> 
> | #define PACKAGE "R"
> 
> | #define VERSION "1.9.1"
> 
> | #define R_PLATFORM "x86_64-unknown-linux-gnu"
> 
> | #define R_CPU "x86_64"
> 
> | #define R_VENDOR "unknown"
> 
> | #define R_OS "linux-gnu"
> 
> | #define Unix 1
> 
> | #ifdef __cplusplus
> 
> | extern "C" void std::exit (int) throw (); using std::exit;
> 
> | #endif
> 
> | #define STDC_HEADERS 1
> 
> | #define HAVE_SYS_TYPES_H 1
> 
> | #define HAVE_SYS_STAT_H 1
> 
> | #define HAVE_STDLIB_H 1
> 
> | #define HAVE_STRING_H 1
> 
> | #define HAVE_MEMORY_H 1
> 
> | #define HAVE_STRINGS_H 1
> 
> | #define HAVE_INTTYPES_H 1
> 
> | #define HAVE_STDINT_H 1
> 
> | #define HAVE_UNISTD_H 1
> 
> | #define HAVE_DLFCN_H 1
> 
> | #define HAVE_LIBM 1
> 
> | #define HAVE_LIBDL 1
> 
> | /* end confdefs.h.  */
> 
> |
> 
> | /* Override any gcc2 internal prototype to avoid an error.  */
> 
> | #ifdef __cplusplus
> 
> | extern "C"
> 
> | #endif
> 
> | /* We use char because int might match the return type of a gcc2
> 
> |    builtin and then its argument prototype would still apply.  */
> 
> | char rl_callback_read_char ();
> 
> | int
> 
> | main ()
> 
> | {
> 
> | rl_callback_read_char ();
> 
> |   ;
> 
> |   return 0;
> 
> | }
> 
> configure:21338: result: no
> 
>  
> 
> Any ideas? Thanks for any help you can provide.
> 
>  
> 
> Kevin Bartz
> 
>   
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
> 

-- 
Roger D. Peng
http://www.biostat.jhsph.edu/~rpeng




More information about the R-help mailing list