CSL102: Introduction to Computer Science

OCaml

Useful Links:

Camelia: An IDE for OCaml

The camelia 1.1 package complains when trying to compile on the GCL computers. So here's a slightly modified archive.

Instructions:

  1. These instructions will not work on the CSC machines. To get camelia running on your CSC machine, click here (Internal link. Will only open from the campus network.)

  2. In a terminal type the following:

cd $HOME
wget http://www.cse.iitd.ac.in/~mcs112565/ta/csl102/camelia-1.1-mod.tar.gz
mkdir opt
tar zxvf camelia-1.1-mod.tar.gz
cd camelia/src
./config --prefix=$HOME/opt
make
make install
export PATH=$HOME/opt/bin:$PATH
camelia &

The last two commands need to be executed to start camelia subsequently. Or, you may add the export command to your .profile so you can run Camelia by typing camelia & in a terminal after you login. i.e.,

echo 'export PATH=$HOME/opt/bin:$PATH' >> $HOME/.profile


To compile the same on your own ubuntu laptop/desktop, the following dependencies must first be installed: (These definitely need to be installed, but I'm not sure if this list is exhaustive and any other dependencies are also required)

sudo apt-get install ocaml qt4-qmake libqt3-compat-headers