[Solved] Error running R in Linux

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 ~

[[email protected] R-2.15.2]# ./configure --prefix=~/progsandlibs/ --enable-R-shlib
configure: error: expected an absolute directory name for --prefix: ~/progsandlibs

Then i tried just ./configure

configure: error: in `/root/progsandlibs/R-2.15.2':
configure: error: no acceptable C compiler found in $PATH

I installed gcc compiler through yum

later when i run ./configure i got this error

 configure: error: No F77 compiler found

Any idea what needs to be installed ?

Enquirer: timma

||

Solution #1:

run the following command as root before configuring R:

yum install gcc

this command will install the latest F77 compiler by GNU, then you should be able to install R as you mentioned in your question.


If you need the old g77 for whatever reason please run this (as root)

yum install compat-gcc*

g77 compiler has stopped development so it is replaced by gfortran in gcc > 4.2.


Respondent: furins

Solution #2:

Try installing the gfortran.

For example: apt-get install gfortran

Respondent: JĂșlio Pires

The answers/resolutions are collected from stackoverflow, are licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 .

Leave a Reply

Your email address will not be published.