Chapter 2. How to install ocaml-gettext

Table of Contents

Using source
Debian distribution
Other distributions

Using source

To compile ocaml-gettext, you need to install the following prerequisites :

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 :

  • ./configure [4]

  • make

  • make install

  • cd test

  • ./test [1]

  • ./benchmark [2]

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.

Note

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.