Search This Blog

Tuesday, January 15, 2013

Installing the Haskell Platform in Ubuntu

Installing the Haskell Platform in Ubuntu

First things first, lets get the dependencies out of the way.
1sudo apt-get install libedit2 libedit-dev freeglut3-dev libglu1-mesa-dev
Now let’s remove any haskell packages we may have installed, as these will cause conflicts.

1sudo apt-get autoremove ghc6
Note that if you installed cabal as per my previous post, you can remove the executable from your $PATH by executing the following:

1sudo rm /usr/local/sbin/cabal

This will not delete the executable, which is stored in $HOME/.cabal/bin/. This just removes the sym-link that was in your $PATH. Next, lets grab the source for GHC 6.10.3 (which is required to build the Haskell Platform)

and untar it.

next, lets configure it and build it:

1cd ghc-6.10.3/
2./configure
3sudo make install
After this, installing the Haskell Platform is just more of the same:

01#grab the tarball
03 
04# untar it
06 
07 
08# ... and install it.
09cd haskell-platform-2009.2.0.1/
10./configure
11make
12sudo make install
Along the way, the install scripts for the Haskell Platform will give you prompts for the next step to take.
Enjoy your Haskell Platform, and happy developing!

No comments:

Post a Comment

Thank you