一、安装依赖包
yum install -y gcc gcc-gfortran glibc-headers readline-devel libXt-devel gcc-c++ xz-devel.x86_64 texinfo.x86_64 texlive-pdftex-doc.noarch
(此依赖包装完最后./config时候会不支持pdf,会有相应报错,不过不影响使用)
二、安装步骤
wget http://lib.stat.cmu.edu/R/CRAN/src/base/R-3/R-3.0.0.tar.gz
tar xzf R-3.0.0.tar.gz
cd R-3.0.0
mkdir -p /home/work/R
./configure --prefix=/home/work/R --enable-R-shlib
make
make install
vim ~/.bash_profile #添加到PATH中: PATH=/home/work/R/bin:$PATH
source ~/.bash_profile #直接运行R命令(大写)
R