banner



How To Install Fortran On Windows 10

Installation of GFortran in Windows 10

February 2020

Back to alphabetize.html.

Installation of GFortran in Windows 10

This commodity explains how to install GFortran in Windows 10. GFortran is a free Fortran compiler. The users can use it with no charge. GFortran is a product of an "open source" project to develop a drove of free compilers (GCC).

The compiler is the most useful when combining with other commands of Linux/Unix. Because Windows does non have the commands by default, programmers adult some packages to accept the commands in Windows. Msys2 is 1 of them, and information technology includes the free compilers, and GFortran developers recommend it for Windows users.

Hither is a process for the installation of Msys2 equally of January 2020.

Msys2 and Mingw-w64

Installation

Pace ane: Visit the official GFortran Wiki to find the link to Msys2 website. It shows a link to Mingw-w64, the proper noun of the project that develops MSYS2. Get to the Mingw-w64 web page.

GFortran Wiki

Step ii: Visit the Mingw-w64 projection site, and you detect the "Download" link. Go to "Download".

Mingw-w64 projection website

Step 3: This page shows all the packages that this project maintains. Cull Msys2.

Msys2 link

Footstep 4: The page shows a link to Msys2 website in Github. Get to the website.

Link to Msys2 projection website

Step 5: Become Msys2 installer on this website. Download a file with msys2-x86_64-xxxxxxxx.exe (xxxxxxxx is replaced with the date which is released). If y'all know your system is 32bit, download msys2-i686-xxxxxxxx.exe.

Msys2 installer website

Footstep 6: Run the installer and follow the instruction to set the program.

Msys2 installer

Pace seven: Invoke Msys2 window. The program runs automatically for the first time. After that, y'all can run it from the card. Choose MSYS2 MinGW 64-chip (32-bit if needed).

Msys2 in the menu

Footstep 8: Make sure that you see a Msys window.

Msys2 window

Footstep nine: Msys2 consists of many dependent programs. Each program is prepared as a packet. If the package is modified, yous tin download information technology through the net. This process is automated by a command pacman.

For the first fourth dimension, you have to date the congenital-in packages through the internet. In the Msys2 windows, type the following command.

          pacman -Syu        

It will ask you whether yous allow downloading the updated packages. You tin blazon y for yes. If it fails, shut the window and try again.

Footstep 10: GFortran is also provided as a package. Blazon the following command in the window to install GFortran.

          pacman -Su gcc-fortran        

Every bit to a higher place, it will ask you if you desire to install the package. Type y, and expect for a while to finish the installation. After this step, you can employ GFortran in this window.

You can confirm the successful installation with the following command.

          gfortran        

Directory construction

The Msys2 window runs Fustigate, and yous tin use most Linux commands in the window. As well, when you lot create some files, you can access the files with Windows Explorer.

The home directory is somewhere on your figurer. Y'all can access the drive C, utilise /c/. For instance, the real dwelling house directory in Windows is /c/Users/your_name if your business relationship name is your_name. Using this rule, you can change the directory to Documents, type cd /c/Users/your_name/Documents.

Dorsum to alphabetize.html.

Source: https://masuday.github.io/fortran_tutorial/install_gfortran_windows.html

Posted by: knightwhock1985.blogspot.com

0 Response to "How To Install Fortran On Windows 10"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel