Table of Contents
To compile ocaml-gettext, you need to install the following prerequisites :
OCaml v3.08.3 or later,
findlib v1.0.4 or later,
ocaml-fileutils v0.3.0 or later,
ocaml-ast-analyze v0.1.0 or later,
camomile v0.6.0 or later,
gettext v0.14.3 or later,
ocaml-benchmark v0.6 or later [2],
Docbook DTD and stylesheets v4.3 [3],
Camomile and gettext are optional but you need at least one of them in order to be able to build the command line tool ocaml-gettext.
After having build and install all prerequisites, extract the source code of ocaml-gettext to a directory. Go to the source directory and type :
Since ocaml-gettext is not yet a stable release, building the benchmark and the unitary test tools is important, especially for debugging purpose. If you encounter problems, you should first try to run this two commands. They will give you good hints on what causes the problem.
There is a patches
directory in the source tree. This directory contains patches
against different programs that should be compatible with ocaml-gettext. Please have a look to the
README.patches
of this directory, to know how to handle patching these programs.
[1] Only if you want to build unitary test tool
[2] Only if you want to build benchmarking tool
[3] Only if you want to build the documentation
[4]
If needed, you can use ./configure --help
to have a complete help on every option you can use to tweak the
installation of ocaml-gettext. To enable documentation generation, use
--enable-doc
. To enable benchmark executable, use
--enable-bench
. To enable test executable, use
--enable-test
.