Installing the R language in CentOS 6.0

Source: Internet
Author: User
Tags readline centos

There is another 5.5 under the installation of http://blog.livedoor.jp/extension/archives/50249503.html, but I did not succeed (~. ~

The R language is mainly used for statistical analysis, drawing of the language and operating environment. Official website: http://www.r-project.org/

There is a direct installation package under Windows, it is convenient to download the installation directly, but it is not possible to install R directly from Yum on the CentOS6.0, 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:

[plain] view plain copy yum install Gcc-gfortran

Otherwise reported "Configure:error:No F77 compiler found" error

[plain] view plain copy yum install gcc gcc-c++

Otherwise reported "configure:error:c++ preprocessor"/lib/cpp "Fails sanity check" error

[plain] view plain copy yum install Readline-devel

Otherwise "–with-readline=yes (default) and Headers/libs is not available" error

[plain] view plain copy yum install Libxt-devel

Otherwise "Configure:error:–with-x=yes (default) and X11 Headers/libs is not available" error

Then download the source code, compile to complete the compilation installation.

[plain] view plain copy cd wget http://ftp.ctex.org/mirrors/CRAN/src/base/R-2/R-2.13.1.tar.gz tar zxvf R-2.1 3.1.tar.gz CD R-2.13.1./configure make do Install

After the installation is complete, the path is:/USR/LOCAL/BIN/R,

You can do this by typing R on the command line, but/usr/bin is generally introduced in the script.

General experience, build two soft links in/usr/bin

[plain] view plain copy su root cd/usr/bin ln-s/usr/local/bin/r R ln-s/usr/local/bin/rscript rscript

installation package for Arules analysis Package : http://cran.r-project.org/web/packages/arules/index.html (arules_1.0-10.tar.gz)
Installation: http://www.chinakdd.com/article-125749.html (R CMD install arules_1.0-10.tar.gz) installation of other packages should also be an operation

Tinker for a day, too much trouble, hereby remark, convenient for oneself, convenient for others

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.