Missing FORTRAN compiler to compile R

I'm trying to install R on a Red Hat Enterprise Linux.

When I tried to compile R using ./configure, it reported "No F77 compiler found" - looks like it cannot find the Fortran Compiler.

However I have installed the GCC tools which should contain a Fortran Compiler, right?

Anyone can help me with this?  Thanks.
thomaszhwangAsked:
Who is Participating?
 
Gerwin Jansen, EE MVEConnect With a Mentor Topic Advisor Commented:
Can youinstalling package 'fort77'?
0
 
thomaszhwangAuthor Commented:
I just tried to run
yum install fort77

Open in new window

.

It looks like there is no package called that name.

Thanks.
0
 
Gerwin Jansen, EE MVEConnect With a Mentor Topic Advisor Commented:
What RHEL version do you have btw?
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
thomaszhwangAuthor Commented:
cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.1 (Santiago)

Open in new window


Is this what you want?
0
 
Gerwin Jansen, EE MVEConnect With a Mentor Topic Advisor Commented:
>> It looks like there is no package called that name.
That's what apt-get suggested me...

You you have a package manager installed? Can you search for 'gfortran' and install?
0
 
thomaszhwangAuthor Commented:
I ran
yum search gfortran

Open in new window

and it returned
compat-libgfortran-41.i686 : Compatibility Fortran 95 runtime library version 4.1.2
compat-libgfortran-41.x86_64 : Compatibility Fortran 95 runtime library version 4.1.2
gcc-gfortran.x86_64 : Fortran support
libgfortran.i686 : Fortran runtime
libgfortran.x86_64 : Fortran runtime
mingw32-gcc-gfortran.x86_64 : MinGW Windows cross-compiler for FORTRAN

Open in new window

0
 
thomaszhwangAuthor Commented:
Which one should I install?
0
 
Martin_J_ParkerConnect With a Mentor Commented:
I think you will need
yum install gcc-gfortran libgfortran
0
 
Duncan RoeConnect With a Mentor Software DeveloperCommented:
Even if you have gfortran, ./configure may be looking for g77. The file configure.log will show you whether that is the case. If it is the case, try ln -s gfortran g77 in the directory where gfortran resides (found by type -p gfortran)
0
 
thomaszhwangAuthor Commented:
Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.