| | 4 | |
| | 5 | == Get the latest development tools == |
| | 6 | |
| | 7 | Certain versions of Apple's Xcode tools are known to cause problems when building ghc 6.6. |
| | 8 | You should download the latest Xcode from the [http://developer.apple.com/tools/xcode Apple Developer Connection] website. |
| | 9 | Downloading requires that you sign up for a free membership in the Apple Developer Connection. |
| | 10 | |
| | 11 | Once upon a time Apple distributed updates to Xcode by using their Software Update service but not anymore. |
| | 12 | You must download the development tools manually. |
| | 13 | |
| | 14 | Successful 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 |
| | 15 | work out of the box on Intel Macs. |
| | 68 | |
| | 69 | == Building using !MacPorts == |
| | 70 | |
| | 71 | ghc 6.6 can be built from source using [http://macports.org MacPorts] on Intel and PowerPC Macs. |
| | 72 | Follow the instructions on the !MacPorts website for installing the infrastructure and port files, |
| | 73 | then type |
| | 74 | |
| | 75 | {{{ > sudo port install ghc }}} |
| | 76 | |
| | 77 | to build and install ghc. Dependencies will be built and installed automatically. There is |
| | 78 | no need to follow the instructions above for installing readline; this is handled by |
| | 79 | !MacPorts dependency mechanism. |
| | 80 | |
| | 81 | If the build is interrupted or fails for some reason you must clean up before trying again. Do |
| | 82 | |
| | 83 | {{{ > sudo port clean ghc }}} |
| | 84 | |
| | 85 | before restarting. |