1

I've been looking for a way to install g77 in ubuntu 20.04 but it seems it is not supported anymore and I can't find anywhere a way to do this. I need it to run some codes that required specifically g77. Is there any way to do this?

José Linares
  • 11
  • 1
  • 2
  • You down load the source code and build it yourself. Or, you install gfortran and see if the code works. – evets Jul 06 '20 at 20:24

1 Answers1

3

You don't need specifically g77. Just install gfortran. It compiles the 77 standard too.

You can also add the flag -std=legacy, to avoid warnings about legacy code.

There is even the f77 executable included when installing gfortran but it is merely a symbolic link to gfortran. So do

sudo apt install gfortran
gfortran -std=legacy this_old_code.f
Jonatan Öström
  • 2,428
  • 1
  • 16
  • 27