error: --with-readline=yes (default) and headers/libs are not available
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
Error running R in Linux
run the following command as root before configuring R:
yum install gcc
this command will install the latest F77 compiler by GNU, then you should be able to install R as you mentioned in your question.
If you need the old g77 for whatever reason please run this (as root)
yum install compat-gcc*
g77
compiler has stopped development so it is replaced by gfortran
in gcc
> 4.2.
Unable to Install Older Version of R
Please try the following steps:
First make sure if you have libxt-dev and jdk.
dpkg -l <package name>
If not do these following commands:
sudo apt -f install && sudo apt update && sudo apt dist-upgrade
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
sudo apt-get install libxt-dev
sudo apt-get install default-jdk
Then download your preferred R version and do as follows:
wget https://cran.r-project.org/src/base/R-3/R-3.2.1.tar.gz
mkdir R-3.2.1
mv R-3.2.1.tar.gz R-3.2.1/
cd R-3.2.1/
tar -xzvf R-3.2.1.tar.gz
Next, make another folder for R's binary version and use the to that folder here:
mkdir <full path>/R3.2.1_VERSION
Build R from source, please make sure to add the full path in prefix
./configure --prefix=<full path>/R3.2.1_OLDERVERSION --enable-R-shlib --with-blas --with-lapack
make
sudo make install
Once, you are finished, please set the environment variable to make sure the right version of R is called
export PATH=<full path>/R3.2.1_VERSION/bin:$PATH
If everything went smoothly then you can see your current R version as 3.2.1 when you run R.
If you want to switch to another version of R then change the environment variable to your preferred version of R package in your account as follows:
export PATH=<full path>/R<your preferred>_VERSION/bin:$PATH
Related Topics
Displaying Data in the Chart Based on Plotly_Click in R Shiny
Dplyr Summarise_Each with Na.Rm
How to Convert Ensembl Id to Gene Symbol in R
Extract Random Effect Variances from Lme4 Mer Model Object
Creating a Pareto Chart with Ggplot2 and R
Use of Switch() in R to Replace Vector Values
Date Format for Plotting X Axis Ticks of Time Series Data
Shiny: Plot Results in Popup Window
Library/Package Development - Message When Loading
Weird As.Posixct Behavior Depending on Daylight Savings Time
Aggregation Using Ffdfdply Function in R
Predicting Lda Topics for New Data
Difference Between Paste() and Paste0()
Odds Ratios Instead of Logits in Stargazer() Latex Output