Installing g95 on Linux

G95 is no longer being developed by its primary author, and it is mostly a Fortran 95 compiler, but it is a robust if not speedy F95 compiler. It would be good to have it available, but many of the download links at the g95 site are broken. Has anyone saved those binaries and/or the g95 source code? One could argue for its preservation on historical as well as practical grounds.

In particular, I have installed Windows Subsystem for Linux, Ubuntu 20.04.1 LTS and would like to install g95 on it.

I use g95 on Windows and have uploaded a MinGW binary here.


I believe there are several g95 fans hanging out on comp.lang.fortran. I suggest that you post your query there.

The developer who supported g95 has moved onto other activities. The logical alternative/replacement is gfortran (part of GCC). gfortran is a very good free compiler.
Farther down the road the new FLANG (part of the LLVM project) is anticipated to be another high-quality alternative. Given the roadmap, I don’t see anyone having the motivation to maintain g95 any longer.

Note also that gfortran was forked from G95 in 2003, as can be seen here:

And G95 development was stopped at the beginning of 2013. Its sources seem to be available only in

Here it’s empty:

There is a G95 newsgroup with a few recent messages:

Perhaps you can find something on the Internet Archive Wayback Machine:*/g95%20fortran
And especially here:
You can go back in time, for example in 2013…

Note also that in the G95 websites, FTP links seem broken, but most of the http links seem OK.

I followed the suggestion of @vmagnin (thanks) and the instructions at installing g95 on ubuntu 12.04 . I am using Ubuntu 20.04.1 LTS under Windows Subsystem for Linux. When trying to compile Hello World with g95 I get

/tmp/ccwKEEjc.s: Assembler messages:
/tmp/ccwKEEjc.s:11: Error: invalid instruction suffix for `push'

Seems to be an assembler problem. Could it be a 32 vs. 64 bits problem?

FTP links may appear broken since most modern browsers are dropping FTP support because of security concerns. If you have an FTP client, or Cygwin with the wget utility, you can still obtain a tarball from the g95 FTP site. For example, for Cygwin on Windows:

--2021-10-05 09:22:35--
Resolving (
Connecting to (||:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3271465 (3.1M) [application/x-tar]
Saving to: 'g95-x86-cygwin.tgz'

g95-x86-cygwin.tgz            100%[=================================================>]   3.12M  4.85MB/s    in 0.6s

2021-10-05 09:22:35 (4.85 MB/s) - 'g95-x86-cygwin.tgz' saved [3271465/3271465]

For Linux, etc., you can similarly use wget to obtain the relevant tarball for your OS.

1 Like