Sample Header Ad - 728x90

gfortran: command not found even after sudo apt-get install

0 votes
0 answers
156 views
system says the latest version of gfortran has been installed when I retry the sudo command, but then i still get the command not found error for gfortran. I'm guessing it's something to do with the directory? I'm using a virtual machine to emulate 29~20.04.1-Ubuntu. The command:
gfortran hello.f90 -o hello
and the error:
gfortran: Command not found.
When I use sudo apt-get install gfortran, i get: gfortran is already the newest version (4:9.3.0-1ubuntu2).
Asked by antonia (1 rep)
Aug 22, 2021, 11:00 AM
Last activity: Aug 22, 2021, 11:15 AM