简体   繁体   中英

unable to install R on RedHat Linux

I am trying to install R from source code for RedHat Linux. when I execute

  ./configure --with-readline=no --with-x=no

I get this error:

checking for dummy main to link with Fortran 77 libraries... none
checking for Fortran 77 name-mangling scheme... configure: error: in `/software/R/R-3.5.1':
configure: error: cannot compile a simple Fortran program

When can I get gfortran library? Is there an R distribution where all of the required libraries are bundled?

If you just want to install R, the easiest solution is to follow the README on CRAN :

  • enable EPEL
  • sudo yum install R

If you have to compile it yourself, enabling EPEL still makes sense, since you can then use

sudo yum-builddep R

to install all the build dependencies of the EPEL build of R.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM