ITPub博客

首页 > 大数据 > 数据分析 > Centos下安装R

Centos下安装R

数据分析 作者:清无 时间:2017-08-23 21:22:20 0 删除 编辑

教程:


下载R源代码

原码下载地址

安装编译环境

yum -y install gcc 
yum install glibc-headers 
yum install gcc-c++ 
yum install gcc-gfortran 
yum install readline-devel 
yum install libXt-devel

安装

在下载的解压文件夹中 
./configure(./configure –prefix=指定路径/R –enable-R-shlib #设置工作路径) 
make 
make install

安装过程中的问题

1、问题描述:checking whether zlib support suffices… configure: error: zlib library and headers are required 
解决方法:yum -y install bzip2-devel 
2、问题描述:configure: error: “liblzma library and headers are required” 
解决方法:yum -y install xz-devel.x86_64 
3、缺少什么就使用yum search 缺少的名称,再根据相应的包来进行安装。 
4、错误描述: 
解决办法:./configure –with-x=no –with-readline=no 
5、错误描述: 
Exiting on user cancel 
解决办法: 
注意观察错误中的路径提示,打开相应的文件,有可能是其中的Python版本指定有问题(现在centos默认还是python2.x,有可能安装了python3.x) 
6、错误描述:

configure: WARNING: you cannot build info or HTML versions of the R manuals 
configure: WARNING: you cannot build PDF versions of the R manuals 
configure: WARNING: you cannot build PDF versions of vignettes and help pages 

解决办法:

yum -y install texinfo.x86_64
yum -y install texlive-pdftex-doc.noarch

错误及解决办法:

configure: error: libcurl >= 7.28.0 library and headers are required with support for https
解决办法:切换为root用户 ./configure 即可

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/31404425/viewspace-2144026/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2016-10-21

  • 博文量
    2
  • 访问量
    951