加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

在Linux中运行R时出错

发布时间:2020-12-13 19:31:39 所属栏目:Linux 来源:网络整理
导读:我一步一步跟着这个R 2.15 install in Redhat 在Cent os 6.3中安装R,在中间步骤中得到了这个错误,我创建了progsandlibs dir in ~[root@localhost R-2.15.2]# ./configure --prefix=~/progsandlibs/ --enable-R-shlibconfigure: error: expected an absolute

我一步一步跟着这个R 2.15 install in Redhat
在Cent os 6.3中安装R,在中间步骤中得到了这个错误,我创建了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编译器

后来当我运行时./configure我收到了这个错误

 configure: error: No F77 compiler found

知道需要安装什么吗?

最佳答案
在配置R之前,以root身份运行以下命令:

yum install gcc

这个命令将安装GNU最新的F77编译器,然后你应该能够像你在问题中提到的那样安装R.

如果您因任何原因需要旧的g77,请运行此(以root身份)

yum install compat-gcc*

g77编译器已停止开发,因此it is replaced by gfortran in gcc> 4.2.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读