0

I am trying to run a package that strictly depends on Fortran 90, but after running its ./configure file it shows the following error:

configure: error: could not find Fortran 90 compiler

There are multiple sources for compiling Fortran 95, but not for 90.

Any suggestion?

1 Answer 1

4

Fortran 95 is a superset of Fortran 90. A Fortran 95 compiler will quite likely be able to compile your Fortran 90 code.

To install the GNU Fortran compiler from kubuntu use:

sudo apt-get install gfortran

In fact, the Fortran 95 standard was just a minor upgrade from the Fortran 90 standard (unlike the change from Fortran 77 to Fortran 90).

4
  • It looks like I had to reboot the machine in order to get rid of that error. Anyways, It is useful to know that it is contained by f95, I didn't found that very explicitly. Mar 5, 2018 at 13:52
  • 3
    AFAIK, even a f90 compiler would switch to f77 mode when compiling a Fortran 77 source file.
    – Kusalananda
    Mar 5, 2018 at 13:52
  • @JoshuaSalazar That does not make sense. Reboot the machine? Really?
    – Kusalananda
    Mar 5, 2018 at 13:53
  • @Kusalananda Yes. Strange. Mar 5, 2018 at 14:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .