Showing posts with label glade. Show all posts
Showing posts with label glade. Show all posts

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