Material For the TWB Tutorial

Instructions to Compile the TWB

Pre-Requesites

To install and run the TWB is essential to have the following software installed on the system

  • ocaml compiler version 3.09.2
  • findlib
  • extlib

1- the ocaml compiler can be downloaded from:

2- findlib can be downloaded from:

3- extlib library can be downloaded from

  • http://ocaml-lib.sourceforge.net/
  • extlib is avalaible in pre-compiled format for a range of gnu/linux distribution. the extlib package in debian Gnu/linux is called libextlib-ocaml-dev.
  • MacOsX users can install findlib via fink/apt (unstable) the name of the package is ocaml-lib.

Basic Installation

To install the TWB, the shell commands `./configure; make; make install' should configure, build, and install this package.

The install script will install the TWB libraries in your ocaml directory, and few example scripts in the directory /usr/bin.

You can specify a different installation path via the option --prefix . However notice that in this case you must set the environment variable OCAMLPATH (used by the findlib library) to locate the directory where the TWB libraries are installed.

If you use a Debian-based distribution and you want the latest snapshot

  1. apt-get install darcs ocaml ocaml-findlib libextlib-ocaml-dev
  2. darcs get http://twb.rsise.anu.edu.au/Repository/twb-dev
  3. cd twb-dev && sh configure && make
  4. ...
  5. profit !
AttachmentSize
twbtutorial.pdf167.07 KB