Installing R 3.3.2 in RHEL 6.8 without yum

本小妞迷上赌 提交于 2019-12-25 04:12:14

问题


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.

So when I:

.configure

the R source I get an error:

configure: error: No F77 compiler found

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

Returns version 4.4.7.


回答1:


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.

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

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/

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.

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.



来源:https://stackoverflow.com/questions/41295807/installing-r-3-3-2-in-rhel-6-8-without-yum

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!