timma
timma

Reputation: 243

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 ~

[root@localhost 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 ?

Upvotes: 7

Views: 18856

Answers (3)

sonnh
sonnh

Reputation: 23

I follow to @furins but it not work for me. So, I tried do install (update) gcc with instruction in here and it work for me (centos7). To give you a fish, try

yum install gcc gcc-gfortran

Upvotes: 0

Júlio Pires
Júlio Pires

Reputation: 321

Try installing the gfortran.

For example: apt-get install gfortran

Upvotes: 22

furins
furins

Reputation: 5048

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.


Upvotes: 7

Related Questions