|
|
# Quick Start: Just building and installing GHC
|
|
|
|
|
|
|
|
|
If you are here because you want to **just build and install GHC**, then the instructions below are for you.
|
|
|
|
|
|
|
|
|
If you are here because you want to **work on GHC**, then skip this section and head over to [Getting started with the build system](building/hacking) instead.
|
|
|
|
|
|
>
|
|
|
> "I just want to build it!"
|
|
|
|
|
|
|
|
|
No problem. This recipe should build and install a working GHC with
|
|
|
all the default settings.
|
|
|
Below are quick instructions for **just building and installing GHC**. For instructions on how to **working on GHC** start over [here](building/hacking).
|
|
|
|
|
|
|
|
|
The following instructions assume that you have [got the sources](building/getting-the-sources) (note: not just a `git clone`) and [installed the necessary tools](building/preparation).
|
|
|
|
|
|
|
|
|
If you are starting from a `git` checkout (or rebuilding from `git`), then:
|
|
|
If you are starting from a `git` checkout then:
|
|
|
|
|
|
```wiki
|
|
|
$ perl boot
|
... | ... | @@ -36,17 +26,7 @@ $ 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.
|
|
|
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).
|
|
|
|
|
|
|
|
|
If you want to do anything at all non-standard, or you
|
|
|
want to do some development, read on... |
|
|
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. |