Monday, 21 December 2015

Installing Haskell IDE leksah in Ubuntu 15.10

On fresh Ubuntu-15.10 (Desktop) you must install the following packages to compile the Haskell IDE leksah.

$ sudo apt-get-install ghc ghc-testsuite cabal-install libgtk-3-dev libgtksourceview-3.0-dev alex happy libwebkitgtk-3.0-devlibghc-quickcheck-instances-dev doctest libghc-doctest-dev

https://wiki.haskell.org/Gtk2Hs/Installation
https://github.com/leksah/leksah/wiki/Getting-started-with-Leksah
$ mkdir -p ${HOME}/build/leksah
$ cd build/leksah
$ cabal sandbox init
$ cabal update
$ cabal install gtk2hs-buildtools
$ cabal install leksah


In case of cabal error messages please execute cabal in verbose mode to get to know the reason for the error
$ cabal install -v leksah

Finally leksah has been installed to the user specific sandbox  "${HOME}/build/leksah/.cabal-sandbox"  

Leksah is being started using the following command:

$ PATH="$PATH:${HOME}/build/leksah/.cabal-sandbox/bin" ${HOME}/build/leksah/.cabal-sandbox/bin/leksah
Starting up first time, Leksah will download and pre-compile some packages of Haskell. This may take some minutes.

No comments:

Post a Comment