2019独角兽企业重金招聘Python工程师标准>>>
R for Linux 安装指南
1、下载
wget http://mirror.bjtu.edu.cn/cran/src/base/R-3/R-3.2.1.tar.gz
2、解压:
tar -zxvf R-3.2.1.tar.gz
cd R-3.2.1
3、安装必备软件
sudo yum install readline-devel
sudo yum install libXt-devel
sudo yum install gcc-gfortran
sudo yum install gcc gcc-c++
sudo yum groupinstall "Development Tools"
sudo yum install gcc gcc-c++ gcc-gfortran readline-devel make texinfo
sudo yum install libX11-devel libX11-devel.* libICE-devel.* libSM-devel.* libdmx-devel.*
sudo yum install libx* xorg-x11* libFS* libX* tetex mesa-libGLU-devel libjpeg-devel
sudo yum install libpng-devel cairo-devel pango-devel -y
4、相关配置
./configure --prefix=/usr/R-3.2.1 --enable-R-shlib --with-readline=yes --with-cairo=yes --with-libpng=yes --with-x=no --disable-nls
5、安装
make && make install
6、配置环境变量
vi /root/.bash_profile
PATH=$PATH:/usr/R-3.2.1/bin
source /root/.bash_profile