在没有yum的RHEL 6.8中安装R 3.3.2 [英] Installing R 3.3.2 in RHEL 6.8 without yum

查看:128
本文介绍了在没有yum的RHEL 6.8中安装R 3.3.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的目标是在RHEL 6.8中安装R 3.3.2,而不会在没有Internet访问的隔离系统中安装yum.我只能将源代码移至该系统进行编译,构建和运行.

My goal is to install R 3.3.2 in RHEL 6.8 without yum inside an isolated system with no Internet access. I can only move source code to this sytem compile, build and run.

所以当我:

.configure

R源出现错误:

configure: error: No F77 compiler found

我发现了,但是现在我很困惑.我觉得gcc 4.0已经有Fortran吗?我检查过:

I found this but now I'm confused. I am under the impression that gcc 4.0 already has Fortran? I checked that:

gcc --version

返回版本4.4.7.

推荐答案

GCC确实随附有Fortran编译器-gfortran,但是Fortran部分通常移至默认情况下未安装的其他软件包中.这是特定于发行版的.

GCC does come with a Fortran compiler - gfortran, but the Fortran part is often moved to a different package which is not installed by default. This is distribution specific.

在RHEL中,此软件包应称为gcc-gfortran.众所周知,RHEL附带了非常老版本的GCC,但R仍应与它们兼容.请参见在centos 6中安装编译器gfortran

In RHEL this package should be called gcc-gfortran. RHEL notoriously ships very old versions of GCC but R should be compatible with them anyway. See installation of compiler gfortran in centos 6

您应该有权访问RHEL订阅中包含的RHEL rpm存储库.您还应该能够使用CentOS二进制文件 http://mirror.centos.org/centos/6/os/x86_64/Packages/gcc-gfortran-4.4.7-17.el6.x86_64.rpm 来自 http://mirror.centos.org/centos/6/os/x86_64/Packages/

You should have access to the RHEL rpm repositories included in your RHEL subscription. You should also be able to use the CentOS binary http://mirror.centos.org/centos/6/os/x86_64/Packages/gcc-gfortran-4.4.7-17.el6.x86_64.rpm from http://mirror.centos.org/centos/6/os/x86_64/Packages/

只需下载rpm文件,将其复制到软盘或USB或其他任何文件上,然后按rpm -iyum进行安装.这是微不足道的,而且即使在没有互联网访问权限的计算机中,yum仍能正常工作.只需下载rpm并将其复制到那里即可.

Just download the rpm file, copy it to your computer on a floppy disk or USB or whatever and install by rpm -i or yum. It is trivial and yum does work even in computers without internet access. Just download the rpm and copy it there.

当然,您始终可以安装完整版本的GCC,无论是从rpm二进制文件还是从

Of course, you can always install a complete new version of GCC, be it from an rpm binaries or from sources from https://gcc.gnu.org/releases.html Just follow the instructions in the documentation.

这篇关于在没有yum的RHEL 6.8中安装R 3.3.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆