R is a free software environment for statistical computing and graphic.
在Ubuntu上编译安装时有几个小问题,记录在此备查:
sudo apt-get install gfortran
当然,编译还需要gcc等工具
sudo apt-get install build-essential
./configure && make && make install,收工
bin/R
R version 2.15.2 (2012-10-26) — “Trick or Treat” Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: x86_64-unknown-linux-gnu (64-bit)
1、解压文件:tar –zvxf R-2.13.2.tar.gz 2、进入R源文件目录:cd R-2.13.2 3、执行./configure命令,提示错误信息为“configure: error: No F77 compiler found”,执行命令yum install gcc-gfortran解决。再次执行./configure,报错:“configure: error: --with-readline=yes (default) and headers/libs are not available”,执行命令./configure --with-readline=no,继续报错:“configure: error: –with-x=yes (default) and X11 headers/libs are not available”。尝试执行命令./configure --with-readline=no --with-x=no通过,只是会提示警告信息:
configure: WARNING: you cannot build DVI versions of the R manuals
configure: WARNING: you cannot build DVI versions of all the help pages
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 all the help pages