Steps to install R language under Centos6
This article mainly explains the steps of installing R language under Centos6. The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn the steps of installing R language under Centos6.
R language is a language and operating environment mainly used for statistical analysis and drawing.
Official website:
Http://www.r-project.org/
There is a direct installation package under Windows, which is very convenient to download and install directly, but for the newly released CentOS6.0, you can't install R directly through yum, you need to compile it yourself.
Download page:
Http://ftp.ctex.org/mirrors/CRAN/
Before compiling R, you need to install the following programs through yum:
The code is as follows:
# yum install gcc-gfortran # otherwise report "configure: error: No F77 compiler found" error
# yum install gcc gcc-c++ # otherwise report "configure: error: C++ preprocessor" / lib/cpp "fails sanity check" error
# yum install readline-devel # otherwise report "- with-readline=yes (default) and headers/libs are not available" error
# yum install libXt-devel # otherwise report "configure: error:-with-x=yes (default) and X11 headers/libs are not available" error
Then download the source code and compile
The code is as follows:
# cd
# wget http://ftp.ctex.org/mirrors/CRAN/src/base/R-2/R-2.13.1.tar.gz
# tar zxvf R-2.13.1.tar.gz
# cd Rmur2.13.1
#. / configure
# make
# make install
The compilation and installation can be completed.
Thank you for reading, the above is the content of "the steps of installing R language under Centos6". After the study of this article, I believe you have a deeper understanding of the steps of installing R language under Centos6, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!