[SOLVED] cannot compile R with readline on a linux cluster
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello,
I am trying to install R-3.4.1 on a linux cluster. I get the following error message:
Code:
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
configure: error: --with-readline=yes (default) and headers/libs are not available
As you can see, the R configure script finds the header files, but something happens with the rl_callback_read_char. Here is more info on this from the config.log:
Code:
configure:22995: checking for rl_callback_read_char in -lreadline
configure:23020: mpicc -g -o conftest -O2 -fPIC -I/home/giessen/ivanov/build/packages/usr/include -I/home/giessen/ivanov/build/packages/usr/include/readline -I/home/giessen/ivanov/build/packages/usr/include -I/home/giessen/ivanov/build/packages/usr/include/readline -L/home/giessen/ivanov/build/packages/usr/lib64 -L/home/giessen/ivanov/build/packages/lib64 conftest.c -lreadline >&5
/home/giessen/ivanov/build/packages/usr/lib64/libreadline.so: undefined reference to `PC'
/home/giessen/ivanov/build/packages/usr/lib64/libreadline.so: undefined reference to `tgetflag'
/home/giessen/ivanov/build/packages/usr/lib64/libreadline.so: undefined reference to `tgetent'
/home/giessen/ivanov/build/packages/usr/lib64/libreadline.so: undefined reference to `UP'
/home/giessen/ivanov/build/packages/usr/lib64/libreadline.so: undefined reference to `tputs'
/home/giessen/ivanov/build/packages/usr/lib64/libreadline.so: undefined reference to `tgoto'
/home/giessen/ivanov/build/packages/usr/lib64/libreadline.so: undefined reference to `tgetnum'
/home/giessen/ivanov/build/packages/usr/lib64/libreadline.so: undefined reference to `BC'
/home/giessen/ivanov/build/packages/usr/lib64/libreadline.so: undefined reference to `tgetstr'
collect2: error: ld returned 1 exit status
I have the readline-6.3 library installed. Any suggestions will be appreciated.
but then, readline is crappy enough to require you to include stdio.h rather than including its dependency within its own readline.h, so who knows what other shittiness lurks within.
That depends on your system. On slackware that wasn't the case for a very long time. I *think* this was recently changed in -current, but not 100% sure. On 14.2 and older you definitely need to link manually.
However, checking the configure output, R already tries to do that automatically and just doesn't find a suitable option. Seems ncurses isn't installed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.