Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Installing Haskell

Haskell Platform for Ubuntu 11.10


$ sudo apt-get install libgmp3-dev freeglut3 freeglut3-dev

Installing GDHC 7.0.4

$ wget
$ tar -xvvf ghc-7.0.4-x86_64-unknown-linux.tar.bz2 
$ cd ghc-7.0.4
$ ./configure
$ sudo make install

Installing Haskell Platform 2011.4.0.0

$ wget
$ tar -xvvf haskell-platform-2011.4.0.0
$ cd haskell-platform-2011.4.0.0
$ ./configure
$ sudo make
$ sudo make install

Testing Haskell

$ ghci
Prelude> "Hola, mundo!"
"Hola, mundo!"
Prelude> :quit # this is for leaving haskell
Leaving GHCi.


I was trying to install Haskell from your comments. Got this issue in it.
After this step $ cd ghc-7.0.4

:~/ghc-7.0.4$ ./configure
checking for path to top of build tree... ./configure: line 1792: utils/ghc-pwd/dist/build/tmp/ghc-pwd: cannot execute binary file
configure: error: cannot determine current directory

I have ubuntu 12.04.

Kindly help what to do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.