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-noxocaml (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)libextlib-ocaml-devlibpcre-ocaml-devFor developing graphical applications using Gtk2:
liblablgtk2-ocamlliblablgtk2-ocaml-devTo access PostgreSQL and/or MySQL databases:
libpostgresql-ocamllibpostgresql-ocaml-devlibmysql-ocamllibmysql-ocaml-devlibdbi-ocamllibdbi-ocaml-devYou can also access ODBC databases by installing:
libocamlodbc-ocaml-devTo parse and validate XML documents:
libpxp-ocaml-devFor 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:
libocamlnet-ocaml-devYou can find out more at the OCamlNet project page.
A project called mod_caml provides full integration with the Apache web server. However there is no Debian package for this at the time of writing (a Debian package is in preparation).
You can though get unofficial Debian packages of mod_caml.
To reuse existing Perl or Python libraries:
libperl4caml-ocamllibperl4caml-ocaml-devpycamlIf 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.