Changes between Version 37 and Version 38 of Building/MacOSX


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

--

Legend:

Unmodified
Added
Removed
Modified
  • Building/MacOSX

    v37 v38  
    55== Get the latest development tools ==
    66
    7 === For Lion, Xcode 7.3 or higher ===
    8 
    9 Firstly, you need to install the command line tools from Apple. You can do that in two ways (the second is faster as it is a much smaller download):
    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 
    19 In both cases, you need to [https://developer.apple.com/programs/register/ register] as an Apple developer first. (This is a free registration.)
    20 
    21 Secondly, if you want to build the development version of GHC from the Git repositories, you also need to install the GNU auto tools (which are no longer distributed by Apple). You can get them as follows:
    22 
    23  * Install [http://mxcl.github.com/homebrew/ Homebrew] (as per instructions on that webpage)
    24  * To install the auto tools execute the following: `brew install autoconf automake`
    25 
    26 Thirdly, if you like to use GHC's LLVM backend, also execute: `brew install llvm`
    27 
    28 '''NB:''' You need to use a binary distribution of GHC 7.4.1 (or later) as a bootstrap compiler. (Earlier versions fail with an error message complaining about the lack of `/Developer/usr/bin/gcc`. You can fix this by editing the GHC wrapper script if you prefer to use an older compiler.)
    29 
    30 === Previous versions of OS X and Xcode ===
    31 
    32 Get 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".
    33 
    34 Once upon a time Apple distributed updates to Xcode by using their Software Update service but not anymore. You must download the development tools manually.  When using the App Store, it should correctly identify when you need an update for Xcode (if you downloaded Xcode from the App Store originally).
    35 
    36 Successful 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.
    37 
    38 === Installing !DocBook ===
    39 
    40 If you want to build the documentation you need to install !DocBook. You can install it through [http://mxcl.github.com/homebrew/ Homebrew] like so:
    41 
    42 {{{
    43 brew install docbook
    44 }}}
    45 
    46 Homebrew might ask you to modify your ~/.bashrc so pay attention to the output generated by the install.
     7See [wiki:Building/Preparation/MacOSX OS X Preparations].
    478
    489== Building the distribution ==