I am trying to install a Fortran compiler on my Mac Pro 2019 (running macOS). First step is:
sudo apt-get install gfortran
but I get error: command not found
I also tried
brew install gfortran
also
port install gfortran
but again, the same error.