How to set up Gfortran 9, 10 or 11 in Ubuntu 20.04 LTS – Guide

The GNU Fortran project is a collaborative effort to develop a free, open source compiler for the Fortran language. Wikipedia’s main page provides users with many useful links about GFortran as well as Fortran in general. Here, the GFortran installation process on Windows, Linux, macOS and OpenBSD is presented in a beginner-friendly format based on information from GFortranBinaries. ..

Getting GNU Fortran on Ubuntu 20.04 / 18.04

GNU Fortran is a compiler created by the GNU Project. It is also known on the Internet as GFortran. It is open source, released under the GPL license. Aiming to create a modern compiler capable of working on multiple systems and environments, GNU Fortran has been successful in accomplishing this goal. ..

The latest version of Fortran is 9. It has many improvements in all Fortran versions it supports. You can check the improvements here.

GNU Fortran is a programming language that allows you to create sophisticated software. It’s perfect for developing computer programs, and it can be used to create high-quality scientific and engineering applications.

Next, install the apt-get package manager. sudo apt-get install apt-transport-https

The APT cache is a list of files that the APT malware uses to store its data. You should update the APT cache to ensure that the malware can access the latest files. ..

gfortran -o out.f9 -D_FILE_OFFSET_BITS=64 -DOPENSSL_NO_SSL -DZLIB -DOPENSSL_PIC -DHAVE_DLFCN This command installs GNU Fortran 9 with the following options: -o out.f9 – Output file offset bits set to 64 (default is 32) -D_FILE_OFFSET_BITS – Set the file offset bits to 64 (default is 32) -DOPENSSL_NO_SSL – Do not use SSL when compiling this program -DZLIB – Use Zlib instead of libssl for security reasons – Use DLLFCN to include the DLFCN library

The installed version of the software is ____.

program hello; begin writeln(‘Hello, world!’); end. ..

GNU Fortran is a free software compiler for the GNU operating system. It was released on 2019-03-01 and is available in Ubuntu 9.3.0-10ubuntu2. ..

Save changes: ctrl + o Close:

After that, type: cat «EOF » /etc/passwd This will output the contents of the /etc/passwd file.

Everything is going according to plan.

Final note

This guide will show you how to set up Gfortran 9, 10 or 11 on Ubuntu 20.04 LTS. If you have any questions about this article, please feel free to ask us in the comments section below. Additionally, please share this article with your friends if you enjoyed it! ..