Internationalisation and Localisation (I18N & L10N)

Interesting links

OCaml tools

Debian ocaml team

To ease compilation of their packages, it is better to know:

More about ocaml-gettext

Prerequisites and their Debian package in sid (if any):

Prerequisites with packages in sid

  • OCaml v3.08.3 or later,
    • ocaml (3.08.3-7)
# aptitude install ocaml
  • findlib v1.0.4 or later,
    • ocaml-findlib (1.0.4-3)
# aptitude install ocaml-findlib
# aptitude install libfileutils-ocaml-dev
  • gettext v0.14.3 or later,
    • gettext (0.14.5-2)
# aptitude install gettext
  • OUnit v1.0.1 or later Only if you want to build unitary test tool,
    • libounit-ocaml-dev (1.0.1.a-1)
# aptitude install libounit-ocaml-dev
  • Docbook DTD and stylesheets v4.3 Only if you want to build the documentation,
    • docbook (4.3-1.1)
# aptitude install docbook
  • xsltproc v1.1.12 or later, Only if you want to build the documentation,
    • xsltproc (1.1.14-1)
# aptitude install xsltproc

Prerequisites with packages from pkg-ocaml-maint on Alioth

ocaml-buildpackage

These packages were, up to now, built with opkg-buildpackage. To build opkg-buildpackage:

$ svn co svn://svn.debian.org/pkg-ocaml-maint/trunk/tools/opkg-buildpackage
$ cd opkg-buildpackage ; dpkg-buildpackage -rfakeroot ; cd -
$ sudo dpkg -i opkg-buildpackage_0.1.3_all.deb

ocaml-ast-analyze v0.1.0 or later

$ svn co svn://svn.debian.org/pkg-ocaml-maint/trunk/packages/ocaml-ast-analyze/upstream ocaml-ast-analyze
$ svn co svn://svn.debian.org/pkg-ocaml-maint/trunk/packages/ocaml-ast-analyze/trunk/debian ocaml-ast-analyze/debian
$ cd ocaml-ast-analyze ; opkg-buildpackage
$ sudo dpkg -i libast-analyze-ocaml-dev_0.1.1-2_all.deb

From sources (the library is installed through ocaml-find) :

$ wget http://www.gallu.homelinux.org/download/ocaml-ast-analyze-0.1.1.tar.gz
$ tar zxvf ocaml-ast-analyze-0.1.1.tar.gz 
$ ocaml-ast-analyze-0.1.1/
$ ./configure --libdir=/usr/local/lib/ocaml/3.08.3
$ make
$ make install

camomile v0.6.0 or later

$ svn co svn://svn.debian.org/pkg-ocaml-maint/trunk/packages/camomile/upstream camomile
$ svn co svn://svn.debian.org/pkg-ocaml-maint/trunk/packages/camomile/trunk/debian camomile/debian
$ cd camomile ; opkg-buildpackage
$ sudo dpkg -i libcamomile-ocaml-data_0.6.1-2_all.deb
$ sudo dpkg -i libcamomile-ocaml-dev_0.6.1-2_i386.deb

From sources (on debian stable, camomile 0.6.2, OCaml 3.08.3. Installation is made through ocamlfind):

$ tar jxvf ~/pub/expdem/external-sources/camomile-0.6.2.tar.bz2 
$ cd camomile-0.6.2/
$ ./configure
$ make
$ make install

ocaml-benchmark v0.6 or later

Only if you want to build benchmarking tool,

$ svn co svn://svn.debian.org/pkg-ocaml-maint/trunk/packages/ocaml-benchmark/upstream ocaml-benchmark
$ svn co svn://svn.debian.org/pkg-ocaml-maint/trunk/packages/ocaml-benchmark/trunk/debian ocaml-benchmark/debian
$ cd ocaml-benchmark ; opkg-buildpackage
$ sudo dpkg -i libbenchmark-ocaml-dev_0.6-2_i386.deb

Prerequisite with packages in sid/contrib

This package has highly non-free dependency.

Building a Java package

$ sudo aptitude install java-package
Download (as an example that works) j2re-1_4_2_02-linux-i586.bin from http://java.sun.com/products/archive/index.html
$ make-jpkg j2re-1_4_2_02-linux-i586.bin
$ sudo dpkg -i sun-j2re1.4_1.4.2+02_i386.deb

Installing fop

$ sudo aptitude install fop

Prerequisites in Sylvain Le Gall repository

Thanks to Sylvain Le Gall, all packages outside Debian may be found in this repository.

But there is a Debian package

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.

Dependencies

# aptitude install chrpath

Build and install

$ svn co svn://svn.debian.org/pkg-ocaml-maint/trunk/packages/ocaml-gettext/upstream ocaml-gettext
$ svn co svn://svn.debian.org/pkg-ocaml-maint/trunk/packages/ocaml-gettext/trunk/debian ocaml-gettext/debian
$ cd ocaml-gettext ; opkg-buildpackage
$ sudo dpkg -i libgettext-ocaml-data_0.2.0-2_all.deb
$ sudo dpkg -i libgettext-ocaml_0.2.0-2_i386.deb
$ sudo dpkg -i libgettext-ocaml-dev_0.2.0-2_i386.deb

Compiling ocaml-gettext from source, without documentation and test dependencies

Compilation done on Debian sarge, OCaml 3.08.3:

$ ./configure --disable-doc --disable-bench --libdir=/usr/local/lib/ocaml/3.08.3
$ make
$ make install

Others that have done it

 
en/i18n/internationalisation_and_localisation.txt · Last modified: 2008/04/18 17:48 by 194.254.163.24
 
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Debian Driven by DokuWiki