Difference between revisions of "Mac OS X"

From HaskellWiki
Jump to navigation Jump to search
(Update the HUGS section to reference MacPorts instead of Fink)
(Rewrite the GHC section entirely)
Line 4: Line 4:
 
== HUGS on Mac OS X ==
 
== HUGS on Mac OS X ==
   
There is a MacPorts package for Hugs (under the name hugs98).
+
There is a [http://www.macports.org MacPorts] package for Hugs (under the name [http://trac.macports.org/browser/trunk/dports/lang/hugs98/Portfile hugs98]).
   
== GHC 6.4.1 on Mac OS X 10.3.9 (Panther) for PowerPC (PPC) ==
+
== GHC on Mac OS X ==
   
  +
GHC is available through [http://www.macports.org MacPorts] or as a standalone installer.
   
  +
=== MacPorts ===
Haskell requires a newer version of XCode than the one distributed with Mac OS X 10.3 (Panther), this version of XCode only works on Mac OS X 10.4 and upwards. Currently there is no way to compile GHC on Mac OS X 10.3.9.
 
   
  +
[http://www.macports.org MacPorts] contains a Portfile for [http://trac.macports.org/browser/trunk/dports/lang/ghc/Portfile ghc].
Then go get the GHC binary for OSX here http://www.haskell.org/ghc/dist/6.4.1/MacOSX/GHC-6.4.1.pkg.zip
 
   
  +
=== Standalone Installer for Mac OS X 10.5 (Intel) ===
Unpack the zip file & install the binary
 
   
  +
There is a [http://haskell.org/ghc/download_ghc_6_10_1.html#macosxintel standalone installer] available for Mac OS X 10.5 (Intel). It requires Xcode 3.0 to be already installed. If you do not have Xcode, you can download it for free from [http://developer.apple.com/ Apple Developer Connection].
GHC should be able to compile .hs files without any trouble.
 
 
=== Other notes: ===
 
 
This should also work for Tiger (OSX 10.4) and on Intel chips, but I dnt have any way to verify this.
 
 
The errors I recieved when trying to compile with only the distributed verison of XCode were like this:
 
/tmp/ghc18985.s:232:Unknown pseudo-op: .subsections_via_symbols
 
 
== Intel Macs ==
 
 
The GHC 6.6 binaries work just fine on Intel Macs. MacPorts also supports it now.
 
 
* http://hackage.haskell.org/trac/ghc/wiki/X86OSXGhc
 
   
 
[[Category:OS]]
 
[[Category:OS]]

Revision as of 20:49, 18 March 2009


HUGS on Mac OS X

There is a MacPorts package for Hugs (under the name hugs98).

GHC on Mac OS X

GHC is available through MacPorts or as a standalone installer.

MacPorts

MacPorts contains a Portfile for ghc.

Standalone Installer for Mac OS X 10.5 (Intel)

There is a standalone installer available for Mac OS X 10.5 (Intel). It requires Xcode 3.0 to be already installed. If you do not have Xcode, you can download it for free from Apple Developer Connection.