Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathanjouty/3905032 to your computer and use it in GitHub Desktop.
Save jonathanjouty/3905032 to your computer and use it in GitHub Desktop.
Installing GHC 7.6.1 on Mac OS X 10.8 Mountain Lion

Installing GHC 7.6.1 on Mac OS X

This is a brief and bare-bones guide to getting GHC 7.6.1 and the cabal-install tool (the two basic things you'll need to do Haskell development) up and running on Mac OS X 10.8 install.

The instructions given here worked for me, but YMMV.

Original on https://gist.github.com/1169332 Edited concept to work with GHC 7.6.1

TODO Not complete, just introduction changed

Installing GHC

Downloading and installing GHC 7.6.1 for x86_64 (Darwin) is straightforward. Use ./configure --prefix=<prefix> if you want it somewhere else.

curl -O http://www.haskell.org/ghc/dist/7.6.1/ghc-7.6.1-x86_64-apple-darwin.tar.bz2
tar -xjvf ghc-7.6.1-x86_64-apple-darwin.tar.bz2
cd ghc-7.6.1
./configure
make install

Installing cabal-install

The problem I ran into was downloading cabal-install 0.14.0 from the Cabal webpages instead of the updated cabal-install 1.16.0.

curl -O http://hackage.haskell.org/packages/archive/cabal-install/1.16.0/cabal-install-1.16.0.tar.gz
tar -xzvf cabal-install-1.16.0.tar.gz
cd cabal-install-1.16.0
sh bootstrap.sh

The bootstrap.sh script is provided by cabal-install as an easy way to get cabal-install and all its dependencies up and running.

@PhilAndrew
Copy link

I had this problem after installing it.
https://bbs.archlinux.org/viewtopic.php?id=150196

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment