Installing GHC (Programming Languages)

From Spivey's Corner
Jump to: navigation, search

The interpreters from the course can be built using any release of GHC from 6.10.x on. Several Linux distributions include GHC as a package, so it may be that all you need to do is install it via the package manager. If you're running Windows or Mac OS/X, then you can get the latest stable release from http://www.haskell.org/ghc/download.

Under Windows

  1. Visit http://haskell.org/ghc/download, and click on the link under 'Current Stable Release'.
  2. Click on 'Binaries', then scroll down and click on 'Windows 2000/XP/Vista'.
  3. Click to download a file with a name like 'ghc-7.6.1-i386-windows.exe'. Alternatively, skip steps 1 and 2 and just click on the link here, at the risk of not getting exactly the latest version of GHC.
  4. After a moment, a dialog box like this appears: choose 'Run'.

    Shot1.png

    (These screenshots show version 6.8.3, but version 7.0.x looks similar.)
  5. The file will be downloaded, then this dialog box appears: choose 'Run' again.

    Shot2.png

  6. The GHC installer will start, and show the following dialog box. Click on 'Next' several times to accept the default settings, then on 'Install' to carry out the installation.

    Shot3.png

  7. It takes some time to unpack all the files that make up GHC. When the installation is done, click on 'Finish' to close the installer. By default, the Readme file for the release is now displayed. It contains nothing important, and you can close it.

Under Debian or Ubuntu Linux

  1. Type 'sudo apt-get install ghc' at the command prompt.