wiki:Building/QuickStart

Version 15 (modified by krakrjak, 20 months ago) (diff)

Add the missing details in case you installed alex or happy using cabal.

Quick Start: Just building and installing GHC

Below are quick instructions for just building and installing GHC. For instructions on how to working on GHC start over here.

The following instructions assume that you have got the sources (note: not just a git clone) and installed the necessary tools.

If you are starting from a git checkout then:

$ perl boot

(this step isn't necessary if you have a source distribution).

Next:

$ ./configure
$ make
$ make install

This will do a 2-stage bootstrap build of the compiler, with profiling libraries, and install the results in the default location (under /usr/local on Unix, for example).

The configure script is a standard GNU autoconf script, and accepts the usual options for changing install locations and the like. Run ./configure --help for a list of options.

NOTE: If you had to install Happy and/or Alex using cabal you will need to override your PATH so cabal's version of happy and alex are used instead of the system versions.

$ PATH=/home/user/.cabal/bin:$PATH ./configure
$ make
$ make install