Skip to content

Instantly share code, notes, and snippets.

@ibtaylor
Created March 11, 2012 13:50
Show Gist options
  • Save ibtaylor/2016514 to your computer and use it in GitHub Desktop.
Save ibtaylor/2016514 to your computer and use it in GitHub Desktop.
ghc 7.4.1 in os x lion
#
# Warning, if you prepended macports paths to your PATH, you may have issues.
#
# which ar => /usr/bin/ar
# which gcc => /usr/bin/gcc
# which ld => /usr/bin/ld
#
# maybe others are important too..
#
# install Xcode 4.3.1
# install Xcode command line tools
# Navigate menus: Xcode -> Preferences -> Downloads -> Command Line Tools -> Install
#
# ghc 7.4.1
#
curl -O http://www.haskell.org/ghc/dist/7.4.1/GHC-7.4.1-x86_64.pkg
sudo installer -target / -pkg GHC-7.4.1-x86_64.pkg
#
# cabal-install
#
git clone git://github.com/ibtaylor/cabal-install.git
cd cabal-install
# Install ignoring any stuff in our normal PATH like /opt/local/bin (ports)
# in user dir
bash -c 'unset PATH; . /etc/profile; bash bootstrap.sh --user'
# or globally
sudo bash -c 'unset PATH; . /etc/profile; bash bootstrap.sh --global'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment