Binaries available for gfortran
This page gathers links to all unofficial gfortran binary packages people regularly build, based on the current development gfortran source code. Currently available are: Windows, MacOS and GNU/Linux. Otherwise you can build GNU Fortran from source.
Windows
Three kinds of packages are provided for Windows users: cygwin (for cygwin users) and mingw/"native Windows" (for people who do not use cygwin). If in doubt, or if you don't know what cygwin and mingw are, the package for you is the "native Windows" package!
Win64 build: if you have a 64-bit Windows edition, download that ZIP archive (date 2008-04-21).
mingw build, or "native Windows": download the latest installer (dated 2008-04-15). It's very easy to use (basically, just click on the OK buttons), but some detailed info is also available. These binaries are known to work on Windows XP, and known to fail on Windows 98. They probably work for versions above 98.
Cygwin build: Download the latest here. This should work with any i686 compatible processor. Instructions are on this page.
- NOTE: The GMP and MPFR packages must be installed for gfortran to work.
Note that the MinGW project itself will not provide official binary downloads of GCC 4.x (including gfortran) until the number of regressions has been reduced (see http://article.gmane.org/gmane.comp.gnu.mingw.user/21938). Until then, binary builds of g77 (the GCC 3.x compiler) are available from the MinGW Download page; thus the binaries available above are - with regards to the MinGW project - unofficial builds.
MacOS
gfortran is available as a nice Apple-style installer for MacOS X Tiger (10.4) and Leopard (10.5) users. It is easy to install. Detailed instructions are here. Both PowerPC and Intel compilers are provided:
There's also an Xcode plugin for gfortran which uses the binaries compiled by Gaurav Khanna.
GNU/Linux
Most Linux distributions offer gfortran packages (including 4.2.0) For those of you who wish to try the latest gfortran (under development), we offer daily builds for the 32bit x86 (ia32, i386, x86-32) and the 64bit x86-64 (AMD64, Intel em64t, Intel64) Linux systems.
For regular 32-bit processors (i386), download this package. There are detailed installation instructions.
For 64-bit AMD-compatible processors (x86_64), download latest-trunk build (4.4) or latest gcc 4.3 build or latest gcc 4.2 build (additional information, older builds and tarball with GMP/MPFR). Follow the installation instructions
Building from Source
First obtain the source code either via subversion or as TAR-Ball. You can then follow the instructions, but in a nutshell you do: create a new directory, e.g. ../gcc-build, go there and run ../gcc/configure --prefix=$HOME/gcc-trunk --enable-languages=c,fortran. You may want to add more languages, --enable-checking=release (esp. useful for compile-time tests as it disables some consistency checks in the compile), --disable-bootstrap (builds faster, but disables some consistency checks). After make and make install you have built your own GCC.