- Download at: http://www.haskell.org/ghc/download_ghc_7_6_3
- Extract it
# Terminal
$ cd /path/to/ghc/ # replace by the right directory
$ ./configure
if you see this error:
checking for path to top of build tree... utils/ghc-pwd/dist/build/tmp/ghc-pwd: error while loading shared libraries: libgmp.so.3: cannot open shared object file: No such file or directory
configure: error: cannot determine current directory
use:
# Terminal
$ sudo apt-get install libgmp3c2
$ sudo ln -s /usr/lib/x86_64-linux-gnu/libgmp.so.10.0.5 /usr/lib/libgmp.so.3
$ ./configure
$ (sudo) make install
- Download at: http://lambda.haskell.org/platform/download/2013.2.0.0/haskell-platform-2013.2.0.0.tar.gz
- Extract it
# Terminal
$ cd /path/to/haskell-platform/ # replace by the right directory
$ ./configure
$ make
$ sudo make install
make the default configuration to cabal:
# Terminal
$ cabal update
Enjoy!
This was greatly helpful. I couldn't apt-get libgmp3cc2 though, but for anyone else it can be downloaded from ftp://ftp.gnu.org/gnu/gmp/gmp-4.3.2.tar.gz and make and install it