We use the OCaml programming language for most of the programming assignments in this course. Follow the directions on the page to install the right version of OCaml and some course-specific software that you'll need to complete the programming assignments.
$ brew install opam
$ sudo add-apt-repository ppa:avsm/ppa $ sudo apt-get update $ sudo apt-get install ocaml opam
$ opam repository add cs691f https://github.com/arjunguha/cs691f-opam.git $ opam install cs691f
$ cs691f helpYou should see output similar to the following:
Usage: cs691f COMMMAND [args] cs691f compile File Compile File.ml. cs691f run File Run the program File.ml. cs691f test File Run the tests in File.ml. cs691f clean Removes files created by 'cs691f compile'. cs691f help Displays this message.
If you're running 32-bit Linux or Cygwin, you'll need to install OCaml and OPAM from source:
$ git clone https://github.com/OCamlPro/opam.git $ cd opam $ git checkout 1.0.0 $ ./configure $ make $ sudo make install
$ git clone https://github.com/ocaml/ocaml.git $ cd ocaml $ git checkout 4.00.1 $ ./configure $ make world.opt $ make install (may require root privileges)
Credit:Thanks to Joseph Collard for the directions on building from source.