Fortran support


#1

Any chance we could get fortran support? gcc should compile fortran files competently but I get this error:

gcc: error trying to exec ‘f951’: execvp: No such file or directory

My guess is that it was stripped to save on container size? Any change of getting it back in there?


#2

you can install fortran, with sudo apt-get install gfortran


#3
mucc:~/workspace $ sudo apt-get install gfortran
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package gfortran is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'gfortran' has no installation candidate

#4

run sudo apt-get update before sudo apt-get install ... like this:

sudo apt-get update
sudo apt-get install gfortran -y

to test it create hello.f file

program hello
print *,"Hello World!"
end program hello

then run

gfortran -ffree-form hello.f

#5

Thanks this got me rollin