系统:centos5.5最新版本
R最新版本:2.10
安装过程:
[root@localhost
R-2.11.0]# ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
loading site script './config.site'
loading build-specific script './config.site'
checking for pwd... /bin/pwd
checking whether builddir is srcdir... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for gawk...
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>中间省略
最后出现:
configure: error: No F77
compiler found
查询configure: error: No F77 compiler
found,发现有人也出现类似问题:
http://forum.ubuntu.org.cn/viewtopic.php?t=146015&sid=569dfd760f23afcbb9bc361e109218e3
configure: error:
No F77 compiler found
是说,在上面尝试寻找了若干种Fortran编译器未果之后,提示你没有安装任何一种可以使用的fortran
77 编译器。
随便装个gfortran就行了。
于是用yum
install gcc-gfortran,下载了一个适合本版本的gcc-gfortran,安装完毕
在默认的情况下安装R语言包
运行./configure,会出现以下错误:
--with-readline=yes
(default) and headers/libs are not
available
实际上系统上已经安装有readline了,可是不知道为什么还有这个错误:
[root@localhost
R-2.11.0]# yum install readline
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: centos.ustc.edu.cn
* base: centos.ustc.edu.cn
* extras: centos.ustc.edu.cn
* updates: centos.ustc.edu.cn
Setting up Install Process
Package readline-5.1-3.el5.x86_64 already installed and latest
version
Package readline-5.1-3.el5.i386 already installed and latest
version
Nothing to do
上面的设置为--with-readline=no,又出现以下错误
configure: error: --with-x=yes (default) and X11 headers/libs are
not available
下载了一个xorg-x11-devel-6.8.2-1.EL.63.i386.rpm进行安装,有出现一下问题:
[root@localhost R-2.11.0]# rpm -ivh
xorg-x11-devel-6.8.2-1.EL.63.i386.rpm
warning: xorg-x11-devel-6.8.2-1.EL.63.i386.rpm: Header V3 DSA
signature: NOKEY, key ID 443e1821
error: Failed dependencies:
fontconfig-devel >= 2.1 is needed by
xorg-x11-devel-6.8.2-1.EL.63.i386
libXpm.so.4 is needed by xorg-x11-devel-6.8.2-1.EL.63.i386
xorg-x11-libs = 6.8.2-1.EL.63 is needed by
xorg-x11-devel-6.8.2-1.EL.63.i386Header V3 DSA
signature: NOKEY, key ID 443e1821
的问题也是一个很大的问题,查阅了好多资料,也没解决,改天再研究一下。
查询了资料,利用一下设置就可以解决上述问题:
利用以下设置:
./configure
--with-x=no
--with-readline=no
然后make
make install
安装成功
把以上两个设置为no肯定会有一定的影响,但是目前只能先这么用着了,也没好的办法
参考资料:http://projects.uabgrid.uab.edu/r-group/wiki/install-R
http://tolstoy.newcastle.edu.au/R/e2/help/06/11/5254.html
https://stat.ethz.ch/pipermail/r-sig-mac/2007-October/004205.html
http://life.tongji.edu.cn/biforum/viewthread.php?tid=161