centos7 R-4.0.2 安装

♀尐吖头ヾ 提交于 2020-08-09 17:56:57

 

 

清华的R语言镜像链接:https://mirrors.tuna.tsinghua.edu.cn/CRAN/

 

tar -zvxf R-4.0.2.tar.gz

cd R-*

yum install -y gcc
yum install -y gcc-gfortran
yum install -y gcc-c++
yum install -y glibc-headers
yum install -y libreadline6-dev gfortran 
yum install -y readline-devel
yum install -y wget libXt-devel
yum install -y fonts-chinese tcl tcl-devel tclx tk tk-devel
yum install -y mesa-libGLU mesa-libGLU-devel
yum install -y install bzip2-devel 
yum install -y install xz-devel.x86_64 
yum install -y install pcre-devel
yum install -y install libcurl
yum install -y install libcurl-devel
yum install -y  texinfo.x86_64
yum install -y texlive-pdftex-doc.noarch
yum install -y texlive
yum install -y xorg-x11-server-Xvfb
yum install -y xorg-x11-fonts-75dpi
yum install -y xorg-x11-fonts-100dpi
yum install -y libXtst-devel
yum install -y libssh2-devel
yum install -y libgit2-devel
yum install -y mysql-devel



yum install pcre2-devel




./configure --enable-R-shlib=yes --with-tcltk --prefix=/usr/local/R
make
make install


/etc/profile

export R_HOME=/usr/local/R
PATH=$PATH:$R_HOME/bin

 

 

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!