Centos6下安装R语言教程

软件发布|下载排行|最新软件

当前位置:首页操作系统Centos/RedHat

Centos6下安装R语言教程

  2020-12-11 我要评论

R语言是主要用于统计分析、绘图的语言和操作环境。

官方网站:

http://www.r-project.org/

Windows下面有直接的安装包,直接下载安装很方便,但是对于刚出的CentOS6.0上不能直接通过yum 安装R,需要自己编译。
下载页面:

http://ftp.ctex.org/mirrors/CRAN/

在编译R之前,需要通过yum安装以下几个程序:


#yum install gcc-gfortran #否则报”configure: error: No F77 compiler found”错误
#yum install gcc gcc-c++ #否则报”configure: error: C++ preprocessor “/lib/cpp” fails sanity check”错误
#yum install readline-devel #否则报”–with-readline=yes (default) and headers/libs are not available”错误
#yum install libXt-devel #否则报”configure: error: –with-x=yes (default) and X11 headers/libs are not available”错误

然后下载源代码,编译


#cd
#wget <a href="http://ftp.ctex.org/mirrors/CRAN/src/base/R-2/R-2.13.1.tar.gz">http://ftp.ctex.org/mirrors/CRAN/src/base/R-2/R-2.13.1.tar.gz</a>
#tar zxvf R-2.13.1.tar.gz
#cd R-2.13.1
#./configure
#make
#make install

即可完成编译安装。

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们