-
Notifications
You must be signed in to change notification settings - Fork 0
Windows Fortran Compiler Installation
Jeremiah Goates edited this page Nov 1, 2023
·
2 revisions
There are multiple fortran compiler suites available for Windows that when installed correctly can compile HI-Mach. The following instructions are for the simplest installation that we are aware of but is not the only way to install HI-Mach.
Download the TDM-GCC installer for 32 and 64 bit systems found here
- Once downloaded, run the setup file.
- Click Create to start a new installation.
- Select MinGW-w64/TDM64 (32-bit and 64-bit) and click Next.
- Specify the installation directory (The default works great for most installations). Click Next.
- On the Choose Components page, change the install type to TDM-GCC Recommended, All Packages. Click Install.
- Once the installation has finished, close the installer.
- Ensure that the installation was successful by typing
gfortran --version
into the command prompt.
Download the MinGW installer found here
- Once downloaded, run the setup file.
- Click Install to start the installation.
- Specify the installation directory (The default works great for most installations). Click Continue.
- Once the download is complete click Continue. The Installation Manager will then pull up.
- Select the msys-base-bin package and select Mark for Installation.
- In the Installation header, select Apply Changes. In the new window click Apply.
- Once the download and installation has finished, ensure that there were no errors in the installation and click Close.
- Close the installer.
Setup the necessary paths to allow fortran to be compiled from any terminal
- In the Windows search bar type env and select Edit the System Environment Variables.
- In the new window select Environment Variables....
- In System Variables select Path and click Edit....
- Select New and type
C:\MinGW\msys\1.0\bin
- Click OK to close all associated windows.