Wednesday, 25 July 2018

Haskell, Leksah installation on Ubuntu 18.04 LTS




sudo apt-get update
sudo apt-get install haskell-platform
sudo apt-get install libgirepository1.0-dev libwebkit2gtk-4.0-dev libgtksourceview-3.0-dev
cd leksah
cabal update
cabal install alex happy
cabal install haskell-gi

#Edit as admin etc/enviorment file to add cabal path

sudo gedit /etc/environment

e.g. I added following line to the end of $PATH 

:~/bulbul_bin/leksah/leksah.sh

#Relogin or run following for path changes to get effect

. /etc/environment

#Run leksah shell to start installation


./leksah.sh

#For creating Desktop launcher, add following line at top of leksah.sh as shown here

cd $(dirname $0)

#Create a custom launcher using methods given here


sudo apt-get install --no-install-recommends gnome-panel gnome-desktop-item-edit ~/Desktop/ --create-new