Version 5.04 (released 11 July 2002)

This is the previous stable release. If you didn't find a binary package of 5.04.1 for your system above, there may be a package of 5.04 available below.

Online Docs

Downloads

Notes:
  • The source distribution needs an installed GHC 4.08.X or 5.X to build. If there isn't a binary distribution for your platform (any version), then you'll need to consult the section on Porting GHC in the Building Guide.

  • The OS-specific packages (eg. RPMs on Linux) are generally a better bet than the vanilla .tar.bz2 binary bundles, because they will check for dependencies and allow the package to be uninstalled at a later date.

    However, if you don't have permission to install binaries on your system, or you want to install somewhere other than the default place (usually /usr or /usr/local), then you'll need to use the .tar.bz2 binary bundle.

Available downloads are:

  • Source: .tar.bz2 (4.5 Mb).
  • RPMs for RedHat Linux/x86 7.3 (these may also work with RedHat 8.0; for RedHat 7.2 RPMs see below) from Manuel Chakravarty:
  • RPMs for RedHat Linux/x86 7.2 from Jeff Lewis:
  • RPMs for SuSE Linux/x86 8.0 from Ralf Hinze:
  • Debian GNU/Linux users: you should be able to say apt-get install ghc5 to install GHC from your nearest mirror. Packages can also be found in Debian's testing and unstable distributions.

    NOTE: the packages may not have appeared yet. For a temporary way to get hold of them, see this message.

  • Binary tar for Linux/x86 with glibc 2.2 (a complete build, including interactive system, profiling libraries and documentation): .tar.bz2 (15.9 Mb). This build was done on a RedHat 7.2 box.

    NOTE: you need the following libraries to use this distribution: libreadline.so.4, libncurses.so.5. These come as standard on RedHat 7.2, at least.

  • Binary tar for SPARC Solaris 2.7 (complete build, with profiling libraries and docs): .tar.bz2 (21.7 Mb).

    On Solaris, you'll need libcurses.so.1, which resolves to /usr/lib/libcurses.so.1 on our build machine. You should ensure you have this before you start, since without it GHC won't work at all.

    NOTE: GCC 3.1 does not work with GHC on Sparc/Solaris at this time. Please ensure that an earlier version (preferrably 2.95.3) is installed and is called 'gcc' on your path.

  • Windows Installer for Microsoft Windows 95, 98, ME, NT, 2000 and XP, prepared by Sigbjorn Finne (complete build, as above): ghc-5-04-1.msi (~32 Mb).

    This installer relies on the Windows Installer runtime to operate. If, after having downloaded the above file, double-clicking on the MSI file doesn't start up the installer, the likely cause is that you don't have the Windows Installer runtime installed on your machine. You can download it from Microsoft:

    Install the appropriate version, then double-click again on the MSI file.

  • FreeBSD/x86 packages:

    • FreeBSD users can install a binary package of ghc by saying pkg_add -r ghc, provided the package exists on whatever mirror site your system is set up to use. At time of writing (22/7) the 5.04 port has just been committed to the FreeBSD /usr/ports tree, so it will be a few days before the packages appear for 4.x, and if you are running -current then your best is to use the port (see below).
    • To install from source instead, make sure your copy of /usr/ports is up to date, and say cd /usr/ports/lang/ghc && make install.

  • OpenBSD/x86 3.1 packages, prepared by Don Stewart:

    This message describes how to build GHC from source using the port on OpenBSD/x86.

  • MacOS X package, prepared by Wolfgang Thaller.

    It's a double-clickable disk image containing an Apple Installer Package (.pkg). It includes profiling & GHCi, but no documentation (use the online docs for now). GHCi is now statically linked with Readline, but the readline library itself is not included, so you will have to install that seperately if you link anything with -package util.