Changes between Version 4 and Version 5 of Building/MacOSX


Ignore:
Timestamp:
Nov 14, 2006 12:24:51 AM (7 years ago)
Author:
guest
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Building/MacOSX

    v4 v5  
    22 
    33= Building on MacOS X = 
     4 
     5== Get the latest development tools == 
     6 
     7Certain versions of Apple's Xcode tools are known to cause problems when building ghc 6.6. 
     8You should download the latest Xcode from the [http://developer.apple.com/tools/xcode Apple Developer Connection] website. 
     9Downloading requires that you sign up for a free membership in the Apple Developer Connection. 
     10 
     11Once upon a time Apple distributed updates to Xcode by using their Software Update service but not anymore. 
     12You must download the development tools manually. 
     13 
     14Successful builds have been reported using Xcode 2.4 and 2.4.1 on Intel and PowerPC Macs. Xcode 2.2.1 is known ''not'' to 
     15work out of the box on Intel Macs. 
    416 
    517== Getting Readline to work == 
     
    719Thanks to Paul R Brown for the following [http://mult.ifario.us/articles/2006/10/17/ghc-6-6-and-mac-os-x-readline-quick-fix instructions]. 
    820 
    9 Building GHC 6.6 out of the box on MacOS X will leave you with a GHCi binary that has no readline support.  This is because MacOS X comes with a cut-down readline library that doesn't support all the things that GHC requires, so the GHC configure script decides not to use it. 
     21Building GHC 6.6 out of the box on MacOS X will leave you with a GHCi binary that has no readline support.  This is because MacOS X comes NetBSD's libedit and Apple has made /usr/lib/libreadline.dylib a symlink to libedit. libedit does not support all of the libreadline API that GHC requires, so the GHC configure script decides not to use it. 
    1022 
    1123To get readline working, you first need to install GNU readline: 
     
    5466 
    5567then "make binary-dist", and tar the ghc-6.6/ directory produced. 
     68 
     69== Building using !MacPorts == 
     70 
     71ghc 6.6 can be built from source using [http://macports.org MacPorts] on Intel and PowerPC Macs. 
     72Follow the instructions on the !MacPorts website for installing the infrastructure and port files, 
     73then type 
     74 
     75{{{ > sudo port install ghc }}} 
     76 
     77to build and install ghc.  Dependencies will be built and installed automatically. There is 
     78no need to follow the instructions above for installing readline; this is handled by 
     79!MacPorts dependency mechanism. 
     80 
     81If the build is interrupted or fails for some reason you must clean up before trying again. Do 
     82 
     83{{{ > sudo port clean ghc }}} 
     84 
     85before restarting.