Showing posts with label leksah. Show all posts
Showing posts with label leksah. Show all posts

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






Tuesday, 1 June 2010

Installing leksah, gtk, gtk2hs, and glade on Ubuntu 10.04 LTS -the Lucid Lynx

  1. sudo apt-get install cabal-install
  2. sudo apt-get install libghc6-zlib-dev
  3. cabal update
  4. sudo cabal install cabal-install --global
  5. sudo apt-get install libgtk2.0-dev
  6. sudo apt-get install libgtksourceview2.0-dev
  7. sudo cabal install alex --global
  8. sudo cabal install happy --global
  9. sudo cabal install gtk2hs-buildtools --global
  10. sudo apt-get install libglade2-dev
  11. sudo cabal install glade --global
  12. sudo cabal install leksah --global

Thursday, 28 January 2010

Installation of gtk, gtk2hs, glade and leksah on windows XP

Step 1: Intall ghc
Download ghc 6.10.3 and install it at default destination.

Step 2: Install cabal
Download cabal for windows and install. This didn't work for me so alternately I used the tar file;
pathtofile\ghc --make Setup.hs
runghc Setup configure
runghc Setup build
runghc Setup install
cabal update

Step 3: Install gtk
Download gtk for windows from and install at the default location.

Step 4: Install gtk2hs
Download gtk2hs-0.10.1-win32-installer and download at default location.

Note: Glade is now in the package list.
on prompt write "ghc-pkg list" to see the installed packages

Step 5: Glade Editor
  • Download glade3
  • untar the folder at any location
  • in the bin folder you will find the glade-3 executable file
Step 6: Leksah
Method I: cabal install leksah

Mathod II: Download the Leksah-0.6.1.0.exe and install at default location.

Method III:
  • Download the binary source tar from hackage
  • untar and and go to the path and wrtie on cmd prompt
pathtofolder\cabal install
This will give error : cannot find -lgtksourceview-2.0

Solution is given in the Leksah FAQ#12,
pathtofolder\cabal install