Reputation: 243
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
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
Reputation: 321
Try installing the gfortran.
For example: apt-get install gfortran
Upvotes: 22
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.
yum install compat-gcc*
g77
compiler has stopped development so it is replaced by gfortran
in gcc
> 4.2.
Upvotes: 7