At time of writing (April 2007), you should use the OCaml packages in Debian/unstable (OCaml 3.10). The version in Debian/stable is rather ancient (OCaml 3.09.2). This will of course change when Lenny is released to the world.
This page assumes that you are installing OCaml 3.10 from Debian/unstable.
Use the apt-get command to install the following packages:
ocaml(only if you require Tk and Graphics support - note that this will pull in X11 libraries)
ocaml-native-compilers(native code, ie. faster, versions of the compilers - this is not available on some more obscure architectures)
For developing graphical applications using Gtk2:
You can also access ODBC databases by installing:
To parse and validate XML documents:
For more information, see the PXP project page.
The basic OCaml library supports fundamentals such as sockets and IPv6. For more advanced features such as the manipulation of MIME email messages you may wish to install:
You can find out more at the OCamlNet project page.
You can though get unofficial Debian packages of mod_caml.
To reuse existing Perl or Python libraries:
If you want the full list of OCaml debian packages, their build order and their current state in different versions of Debian, you should take a look at the Debian Ocaml Maintainer pages.