Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error: --with-readline=yes (default) and headers/libs are not available

Tags:

installation

r

I am installing R. I am getting this error when runing ./configure :

checking for history_truncate_file... no configure: error: --with-readline=yes (default) and headers/libs are not available 

Any hint, Thanks

like image 936
Adam Dahmani Avatar asked Jul 04 '13 15:07

Adam Dahmani


2 Answers

Use the following command will solve this problem

./configure --with-readline=no --with-x=no 

--with-x=no turns off the X Windows System . It is the GUI for the Linux and Unix-like OS. My computer has no X Windows installed, so I turn off.
But I highly recommand to install readline library before R installtion with '--with-readline=yes', as the command operation style is quitely unfriendly with '--with-readline=no' . See more libreadline installation in linux for more details

you can use the following command for more install configuration details

./configure --help 
like image 118
bourneli Avatar answered Sep 26 '22 16:09

bourneli


on I found problem on compiling R 3.1.1 so as a part of solution , i recommend to install the below libraries first before you compile this R and use

sudo apt-get install build-essential sudo apt-get install fort77 sudo apt-get install xorg-dev sudo apt-get install liblzma-dev  libblas-dev gfortran sudo apt-get install gcc-multilib sudo apt-get install gobjc++ sudo apt-get install aptitude sudo aptitude install libreadline-dev 

Thank you other people who posted and kept the knowledge going..

like image 38
Anup Ash Avatar answered Sep 23 '22 16:09

Anup Ash