Changes between Version 1 and Version 2 of Building/Preparation/MacOSX


Ignore:
Timestamp:
Dec 19, 2012 11:53:15 PM (3 years ago)
Author:
dterei
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Building/Preparation/MacOSX

    v1 v2  
    1 
    2 
    31= Setting up a MacOS X system for building GHC =
    42
    5 See [wiki:Building/MacOSX].  !ToDo: move the relevant parts of the docs here.
     3You will need to install [http://mxcl.github.com/homebrew/ Homebrew] for getting some of the tools needed. Homebrew is recommended over other systems on OS X such as MacPorts and Fink.
     4
     5== Xcode (GCC) ==
     6
     7=== For Lion (10.7), Xcode 7.3 or higher ===
     8
     9Firstly, you need to install the Xcode Command Line tools from Apple. You can do that in two ways (the second is faster):
     10
     11 1. Install all of Xcode:
     12   * Install Xcode from the Mac App Store.
     13   * Launch Xcode.
     14   * In the Preference dialog of Xcode, select the "Downloads" pane and install "Command line tools".
     15 2. Install the command line tools only:
     16   * At the [http://developer.apple.com/downloads downloads page of Apple Developer], download the latest "Command line tools".
     17   * Install them.
     18
     19In both cases, you need to [https://developer.apple.com/programs/register/ register] as an Apple developer first (free).
     20
     21=== Previous versions of OS X and Xcode ===
     22
     23Get the most recent version of Apple's Xcode tools that you can. Your OS X CD has a version on it. You may be able to download a newer version from the [http://developer.apple.com/tools/xcode Apple Developer Connection] website. You may need to sign up for a free membership in the Apple Developer Connection, and downloading may still cost a little money.  In later versions of OS X (10.6 / 10.7), Apple added the "App Store". Xcode is available within the App Store for "Free".
     24
     25Successful builds of older GHC sources have been reported using Xcode 3.0, 2.4 and 2.4.1 on Intel Macs. Xcode 2.2.1 is known ''not'' to work out of the box on Intel Macs, and Xcode 3.0 is known ''not'' to work out of the box on PowerPC Macs (#2887). Versions prior to 3.1 may build GHC successfully, but choke on certain libraries.
     26
     27== GHC ==
     28
     29Secondly, you need a installation of GHC for use as your bootstrap compiler.
     30
     31You can install a binary distribution of GHC in three ways:
     32
     33  1. Install the [http://www.haskell.org/platform/ Haskell Platform].
     34  2. Install via Homebrew: `brew install ghc` OR `brew install haskell-platform`.
     35  3. Install a [http://www.haskell.org/ghc/download binary distribution from GHC].
     36
     37'''NB:''' You need to use a binary distribution of GHC 7.4.1 (or later) as your bootstrap compiler.
     38
     39== GNU tools ==
     40
     41Thirdly, if you want to build the development version of GHC from the Git repositories, you also need to install the GNU auto tools. You can get them as follows:
     42
     43 * (Homebrew): `brew install autoconf automake`
     44
     45== LLVM ==
     46
     47Fourthly, if you like to use GHC's LLVM backend:
     48
     49 * (Homebrew): `brew install llvm`
     50
     51== Installing !DocBook ==
     52
     53Finally, if you want to build the documentation you need to install !DocBook. You can install it like so:
     54
     55 * (Homebrew): `brew install docbook`