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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gerwin Jansen, EE MVETopic Advisor Commented:
Can youinstalling package 'fort77'?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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 MVETopic Advisor Commented:
What RHEL version do you have btw?
0
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

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 MVETopic 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_ParkerCommented:
I think you will need
yum install gcc-gfortran libgfortran
0
Duncan RoeSoftware 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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.