|
|
# Quick Start to just building and installing GHC
|
|
|
# Quick Start to just building GHC
|
|
|
|
|
|
|
|
|
Below are quick instructions for **just building and installing GHC**. If you are an aspiring GHC developer, read the [Newcomers](newcomers) page instead.
|
... | ... | @@ -22,7 +22,6 @@ Next on non-Windows: |
|
|
```wiki
|
|
|
$ ./configure
|
|
|
$ make
|
|
|
$ make install
|
|
|
```
|
|
|
|
|
|
|
... | ... | @@ -35,19 +34,16 @@ This only has to be done once and can be done by adding a flag to the call to co |
|
|
```wiki
|
|
|
$ ./configure --enable-tarballs-autodownload
|
|
|
$ 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).
|
|
|
|
|
|
## Installing
|
|
|
|
|
|
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.*
|
|
|
After building, to install GHC (by default in `/usr/local`):
|
|
|
|
|
|
```wiki
|
|
|
$ PATH=/home/user/.cabal/bin:$PATH ./configure
|
|
|
$ make
|
|
|
$ make install
|
|
|
``` |
|
|
\ No newline at end of file |