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






Wednesday 21 July 2010

Conversion from word to lyx

  1. sudo apt-get install abiword
  2. open the word document in abiword
  3. save as latex (.tex) document (from "save file as type" select latex )
  4. Once you have .tex, open lyx and import the .tex into it

Sunday 27 June 2010

ACM SIGSPATIAL FORMAT FOR LYX

  1. sudo apt-get install texlive-publishers
  2. Download and save on your Desktop the ACM .cls file from http://www.acm.org/sigs/publications/acm_proc_article-sp.cls
  3. cd /usr/share/texmf-texlive/tex/latex/acmtrans
  4. sudo mv ~/Desktop/acm_proc_article-sp.cls acmtrans2e.cls
  5. sudo cp /usr/share/lyx/layouts/article.layout ~/.lyx/layouts/acmtrans2e.layout
  6. sudo gedit ~/.lyx/layouts/acmtrans2e.layout
  7. Change second line # \DeclareLaTeXClass{article} to # \DeclareLaTeXClass[acmtrans2e]{article (ACM)}
  8. sudo texhash
  9. In Lyx: Tools --> Reconfigure
  10. Restart Lyx
  11. In Lyx: Douments ---> Setting
In document class listing you must now see the "article (ACM)"
and right click on the added "BibTex Generated Bibliography" at the end of the lyx document and select settings and "Style" drop down has the "acm".

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

Friday 21 May 2010

Configuring Lyx for including "Document Class" for "article (Springer LNCS)"

  1. Download llncs2e.zip
  2. Extract to or copy extracted folder llncs2e to /usr/share/texmf/tex/latex
  3. In terminal: sudo texhash
  4. In Lyx: Tools --> Reconfigure
  5. Restart Lyx
  6. In Lyx: Douments ---> Settings
In document class listing you must now see the "article (Springer LNCS)"

Monday 22 March 2010

Cabalized gtk2hs: errors

Cabalized version available at http://www.mail-archive.com/gtk2hs-devel@lists.sourceforge.net/msg00535.html

During installation of cairo-0.10.5:

[1 of 1] Compiling Main ( Setup.hs, dist\setup\Main.o )
Linking .\dist\setup\setup.exe ...
Configuring cairo-0.10.5...
setup.exe: Missing dependencies on foreign libraries:
* Missing C libraries: z, cairo
This problem can usually be solved by installing the system packages that
provide these libraries (you may need the "-dev" versions). If the libraries
are already installed but in a non-standard location then you can use the
flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.
cabal: Error: some packages failed to install:
cairo-0.10.5 failed during the configure step. The exception was:
exit: ExitFailure 1

Issues in the installation of darcs version of gtk2hs on windows

With ghc-6.10.3


$ autoreconf

configure.ac:105: error: possibly undefined macro: AC_MSG_ERROR
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /mingw/bin/autoconf failed with exit status: 1

Redoing autoreconf works

$ ./configure

./configure: line 5002: syntax error near unexpected token `GLIB,glib-2.0'
./configure: line 5002: `PKG_CHECK_MODULES(GLIB,glib-2.0 >= 2.0.0 gobject-2.0 >=
2.0.0, , as_fn_error "'

With Haskell Platform (ghc-6.10.4)

./configure
There was an error saying that the ghc is not found in the included path. However, it was already there.