Entering edit mode
10.4 years ago
Ct586
▴
630
Hi, all,
When I was configuring R (R-3.2.0 and R-3.1.1), I met the following problems.
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
checking for rl_callback_read_char in -lreadline... no
checking for main in -lncurses... no
checking for main in -ltermcap... no
checking for main in -ltermlib... no
checking for rl_callback_read_char in -lreadline... no
checking for history_truncate_file... no
configure: error: --with-readline=yes (default) and headers/libs are not available
However, I have readline installed in ~/softwares/readline-6.3/install
, and ~/softwares/readline-6.3/install/lib
in LD_LIBRARY_PATH
, and ~/softwares/readline-6.3/install/include
in C_INCLUDE_PATH
.
Files listed as below:
bin include lib share
./bin:
./include:
readline
./include/readline:
chardefs.h history.h keymaps.h readline.h rlconf.h rlstdc.h rltypedefs.h tilde.h
./lib:
libhistory.a libhistory.so libhistory.so.6 libhistory.so.6.3 libreadline.a libreadline.so libreadline.so.6 libreadline.so.6.3 readline.so
Here is another error, I wonder if there is anything wrong about libreadline.so.
$ ld readline-6.3/install/lib/libreadline.so
ld: warning: cannot find entry symbol _start; not setting start address
readline-6.3/install/lib/libreadline.so: undefined reference to `PC'
readline-6.3/install/lib/libreadline.so: undefined reference to `tgetflag'
readline-6.3/install/lib/libreadline.so: undefined reference to `tgetent'
readline-6.3/install/lib/libreadline.so: undefined reference to `UP'
readline-6.3/install/lib/libreadline.so: undefined reference to `tputs'
readline-6.3/install/lib/libreadline.so: undefined reference to `tgoto'
readline-6.3/install/lib/libreadline.so: undefined reference to `tgetnum'
readline-6.3/install/lib/libreadline.so: undefined reference to `BC'
readline-6.3/install/lib/libreadline.so: undefined reference to `tgetstr
My operation system is:
Linux version 2.6.32-358.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Fri Feb 22 00:31:26 UTC 2013
I wonder why configure
of R can not find the libreadline.so
?
Thanks for the help!
Chen Tong