... | ... | @@ -11,37 +11,9 @@ See [OS X Preparations](building/preparation/mac-osx). |
|
|
## Building the distribution
|
|
|
|
|
|
|
|
|
Install a binary GHC distribution: either from a bindist (.tar.bz2) or from an installer (.pkg).
|
|
|
See the general [build instructions](building/quick-start).
|
|
|
|
|
|
|
|
|
Download the source tarball from [ http://haskell.org/ghc/download.html](http://haskell.org/ghc/download.html)
|
|
|
|
|
|
|
|
|
Untar it and change into the directory it unpacks into. Then run
|
|
|
|
|
|
```wiki
|
|
|
./configure
|
|
|
make
|
|
|
```
|
|
|
|
|
|
|
|
|
to build it.
|
|
|
|
|
|
|
|
|
You can then either install it, with
|
|
|
|
|
|
```wiki
|
|
|
make install
|
|
|
```
|
|
|
|
|
|
|
|
|
or make a binary distribution with
|
|
|
|
|
|
```wiki
|
|
|
make binary-dist
|
|
|
```
|
|
|
|
|
|
## Building installer packages
|
|
|
## Building OS X Installer Packages
|
|
|
|
|
|
|
|
|
After making the binary-dist, you can create a Mac installer package (.pkg) by running
|
... | ... | @@ -57,37 +29,6 @@ The result will be a file `GHC-<version>-<arch>.pkg`, where `<version>` is the f |
|
|
|
|
|
More details about [building installer packages](building/mac-osx/installer) are available.
|
|
|
|
|
|
## Building using MacPorts
|
|
|
|
|
|
|
|
|
ghc 6.6 can be built from source using [ MacPorts](http://macports.org) on Intel and PowerPC Macs.
|
|
|
Follow the instructions on the MacPorts website for installing the infrastructure and port files,
|
|
|
then type
|
|
|
|
|
|
` > sudo port install ghc `
|
|
|
|
|
|
|
|
|
to build and install ghc. Dependencies will be built and installed automatically. There is
|
|
|
no need to follow the instructions above for installing readline; this is handled by
|
|
|
MacPorts dependency mechanism. If you want to see how the build is progressing, type
|
|
|
|
|
|
` > sudo port -dv install ghc `
|
|
|
|
|
|
|
|
|
The "-dv" flags indicate verbose debugging output. Using these can also help diagnose build problems.
|
|
|
|
|
|
|
|
|
If the build is interrupted or fails for some reason you must clean up before trying again. Do
|
|
|
|
|
|
` > sudo port clean ghc `
|
|
|
|
|
|
|
|
|
before restarting.
|
|
|
|
|
|
|
|
|
A nice feature of MacPorts is that you can put its installation directory tree anywhere.
|
|
|
This allows installations without administrator privileges.
|
|
|
|
|
|
## Case insensitivity
|
|
|
|
|
|
|
... | ... | |