Footsteps on my way !
perl/linux/测序分析

centos 7 自定义安装最新版R-3.5.0

记录一下R的安装过程,服务器系统版本为centos 7,R版本为最新版3.5.0下面是安装步骤:

  1. wget https://cran.r-project.org/src/base/R-3/R-对应版本号.tar.gz
  2. 解压文件:tar –zvxf R-对应版本号.tar.gz
  3. 在解压的文件夹中执行:./configure –enable-R-shlib=yes –prefix=/share/soft/R-3.5.0
  4. make
  5. make install
  6. 配置R环境变量
    \$ vim /etc/profile
    export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/share/soft/R-3.5.0/lib64
    export PATH=/share/soft/R-3.5.0/bin:$PATH

Error1:–with-readline=yes (default) and headers/libs are not available #使用tab自动补全以及上下左右等方向键

$ yum install readline-devel

Error2:–with-x=yes (default) and X11 headers/libs are not available #使用图形界面

$ yum install libXt-devel

 

https://segmentfault.com/a/1190000007553604?from=singlemessage

https://blog.csdn.net/ustczyy/article/details/14448445

https://www.cnblogs.com/emanlee/p/7835458.html

尊重他人劳动成果,转载请注明出处:Bluesky's blog » centos 7 自定义安装最新版R-3.5.0

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址