Skip to content

Instantly share code, notes, and snippets.

@mklinik
Created June 21, 2013 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mklinik/5831561 to your computer and use it in GitHub Desktop.
Save mklinik/5831561 to your computer and use it in GitHub Desktop.
How to install Haskell from scratch
How to install Haskell from scratch
-----------------------------------
- Attention: There is a matching version of GHC for each version of Haskell
Platform, make sure you check to install the one matching the Haskell
Platform you plan to install
- Download binary GHC package from http://www.haskell.org/ghc/
- Unpack, then:
$ export VERSION=7.4.1 # adapt
$ cd ghc-$VERSION
$ ./configure --prefix=$HOME/ghc-$VERSION
$ make install # takes 1 minute
$ export PATH=$HOME/ghc-$VERSION/bin:$PATH # you want to put this to .profile or something
- Download Haskell Platform that fits the GHC version from http://hackage.haskell.org/platform/
- Unpack, then:
$ cd haskell-platform-$VERSION
$ ./configure --prefix=$HOME/ghc-$VERSION # we're installing ghc and platform to the same directory
$ make install # takes ~20 minutes on my x41
- Done. continue with cabal update etc.
See also
--------
http://www.vex.net/~trebla/haskell/haskell-platform.xhtml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment