在Linux中运行R时出错 [英] Error running R in Linux
问题描述
我逐步遵循了在Redhat中安装R 2.15 的步骤在Cent os 6.3中安装R,在中间步骤中出现此错误,我创建了progsandlibs
I followed this R 2.15 install in Redhat step by step to install R in Cent os 6.3, got this error in the intermediate step, i have created the progsandlibs
dir in ~
[root@localhost R-2.15.2]# ./configure --prefix=~/progsandlibs/ --enable-R-shlib
configure: error: expected an absolute directory name for --prefix: ~/progsandlibs
然后我只是尝试 ./configure
configure: error: in `/root/progsandlibs/R-2.15.2':
configure: error: no acceptable C compiler found in $PATH
我通过yum安装了gcc编译器
I installed gcc compiler through yum
稍后,当我运行 ./configure
时,出现此错误
later when i run ./configure
i got this error
configure: error: No F77 compiler found
任何想法都需要安装什么?
Any idea what needs to be installed ?
推荐答案
在配置 R 之前,先以 root 身份运行以下命令:
run the following command as root before configuring R:
yum install gcc
此命令将安装GNU的最新F77编译器,然后您应该能够按照问题中的说明安装 R .
this command will install the latest F77 compiler by GNU, then you should be able to install R as you mentioned in your question.
如果出于任何原因需要旧版g77 ,请运行此程序(作为 root )
If you need the old g77 for whatever reason please run this (as root)
yum install compat-gcc*
g77
编译器已停止开发,因此它在 gcc
> 4.2中被 gfortran
替换.
g77
compiler has stopped development so it is replaced by gfortran
in gcc
> 4.2.
这篇关于在Linux中运行R时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!