Ocsigen platform installation

Binary distribution

Ocsigen is available in some software distributions, e. g.:

If your distribution has all the packages you need, this is probably the simplest way to install Ocsigen software.

Source compilation

If the latest version of Ocsigen is not available in your distribution or if you want to install a development version, you may compile the whole Ocsigen platform with one of the following techniques:

Individual source package

The Ocsigen platform as a lot of dependencies, and building each project individually may be a long process. Here the consolidated list of dependencies in the order you may build them.

Consolidated dependencies

C libraries

On Debian based system:

sudo aptitude install libev-dev libgdbm-dev libncurses5-dev libpcre3-dev \
                      libssl-dev libsqlite3-dev
OCaml libraries

On Debian based system:

sudo aptitude install ocaml ocaml-compiler-libs \
                      camlp4 camlp4-extra \
                      ocaml-findlib libfindlib-ocaml-dev \
                      libreact-ocaml-dev libssl-ocaml-dev libpcre-ocaml-dev \
                      libcryptokit-ocaml-dev libtext-ocaml-dev \
                      libcalendar-ocaml-dev libocamlnet-dev
Optionnal OCaml libraries

On Debian based system:

sudo aptitude install libsqlite3-ocaml-dev libzip-ocaml-dev \
                      libtype-conv-camlp4-dev ocamlduce

Build each projects separately

As this step, you may build the Ocsigen platform in this order:

Consolidated dependencies for Ocsimore

External C libraries

On Debian based system:

sudo aptitude install libpam0g-dev postgresql
External OCaml libraries

On Debian based system:

sudo aptitude install libextlib-ocaml-dev libcsv-ocaml-dev libpgocaml-ocaml-dev libpam-ocaml-dev