美文网首页R语言
linux下安装R-3.4.2和Rstudio server

linux下安装R-3.4.2和Rstudio server

作者: yuanyb | 来源:发表于2017-11-16 09:24 被阅读929次

    1.下载R安装包
    https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/base/R-3/R-3.4.2.tar.gz
    2.安装前准备工作
    yum install glibc-headers gcc-c++
    yum install readline-devel
    yum install libXt-devel
    yum install gcc-gfortran
    yum install zlib-devel
    yum -y install xz-devel.x86_64
    yum install pcre-devel
    yum install libcurl-devel
    yum -y install texinfo.x86_64
    yum -y install texlive-pdftex-doc.noarch
    yum -y install texlive
    https://ctan.org/下载inconsolata ,解压至/usr/share/texlive/texmf-dist/tex/latex文件下
    将上述下载的压缩包整个文件夹解压到上述目录
    然后刷新一下 sty 就好.sudo mktexlsr或者sudo texhash

    以上可以使用以下命令下载包并离线安装
    yum install --downloadonly --downloaddir=/home readline-devel
    3.cd R-3.4.2
    ./configure --enable-R-shlib
    make
    make install
    vi .bash_profile
    PATH=/home/R-3.4.2/bin:$PATH
    source .bash_profile
    4.安装rstudio-server
    $ wget https://download2.rstudio.org/rstudio-server-rhel-1.1.383-x86_64.rpm
    $ sudo yum install --nogpgcheck rstudio-server-rhel-1.1.383-x86_64.rpm
    rstudio-server start
    rstudio-server status
    5.验证http:ip:8787

    相关文章

      网友评论

        本文标题:linux下安装R-3.4.2和Rstudio server

        本文链接:https://www.haomeiwen.com/subject/qqikvxtx.html