yum install yum-priorities
yum install -y R

全新的CentOS 安装R实践过程:
参考:
http://blog.csdn.net/wjxydzxxyy/article/details/50477520
http://blog.sina.com.cn/s/blog_6caea8bf0100zfbu.html
http://blog.csdn.net/qq_34023608/article/details/51700974
http://blog.csdn.net/wumiqing1/article/details/54232345

主要遇到的问题:

  1. c编译器的问题:
yum -y install gcc
yum install glibc-headers
yum install gcc-c++
yum install gcc-gfortran 
  1. java:
yum install java-1.8.0-openjdk-*
yum install readline-devel(解决错误“ --with-readline=yes (default) and headers/libs are not available”)
yum install libXt-devel(解决错误“–with-x=yes (default) and X11 headers/libs are not available”)
yum -y install bzip2-devel
yum install zlib-devel
yum -y install xz-devel.x86_64
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.38.tar.gz
tar -xzvf pcre-8.38.tar.gz
cd pcre-8.38
./configure --enable-utf8 --prefix=/software/packages
make 
make install

文章来源于互联网,如有雷同请联系站长删除:CentOS 安装R

发表评论