Installing First Timer

Where do I install the compilers? I cannot even get the output for ‘Hello
World’! HELP!1

1 Like

Which platform are you using @cyber_pwnz?

sudo apt install gfortran
  • If you are using macOS, you are likely already familiar with brew software, simply try the following command in a terminal
brew install gfortran

If you do not have brew, install it simply by copy-pasting the following command in the terminal,

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Let us know if this resolves your installation problem.
There are also a few dozen online Fortran compilers that you can use to test your simple Fortran (or any other language) codes. An excellent example is https://godbolt.org/

Once you feel comfortable using the GNU Fortran compiler, you can also try installing other existing Fortran compilers that require more patience. Here is an example guideline for the Intel Fortran compiler: Get Started on Windows

1 Like

@cyber_pwnz ,

Welcome to the Fortran Discourse!

To add a bit to the help from @shahmoradi , if you’re new to Fortran, you may want to take a look at the Fortran-lang page, especially the sections on Learn, Play, and Compilers:
https://fortran-lang.org/en/

Re: "the output for ‘Hello World’, note you can get that the Play page in your browser itself without installing any compilers:
https://play.fortran-lang.org/

1 Like