• 解压: cd /software tar -zxvf R-3.2.2.tar.gz mv R-3.2.2 R cd R mkdir -p /usr/local/R
  • 配置并安装: ./configure --prefix=/usr/local/R --enable-R-shlib make make install
  • 修复报错:
  • 找不到C编译器:yum install gcc
  • 找不到Fortran编译器:yum install gcc-gfortran
  • C++预处理器错误:yum install gcc-c++
  • 找不到readline头文件和库文件:yum install readline-devel
  • 找不到X11库:yum install libX11-devel