环境准备
安装gcc-gfortran
1
yum install gcc-gfortran
安装gcc gcc-c++
1
yum install gcc gcc-c++
安装readline-devel
1
yum install readline-devel
安装libXt-devel
1
yum install libXt-devel
安装
- 首先wget获取R源代码
1
wget https://cran.r-project.org/src/base/R-3/R-3.2.2.tar.gz
R语言的源码地址https://cran.r-project.org/src/base/,这里以3.2.2为例。
解压文件
1
tar zxvf R-3.2.2.tar.gz
进入R-3.2.2目录
1
cd R-3.2.2
编译源码
1
2
3
4./configure
make
make install
make check