| 1 |
Installation Notes for CDuce
|
| 2 |
============================
|
| 3 |
|
| 4 |
CDuce is written in the OCaml programming language. It has been
|
| 5 |
sucessfully compiled under Intel Linux, SunOS 5.7, and FreeBSD 4.7.
|
| 6 |
|
| 7 |
------------------------------------------------------------------------------
|
| 8 |
Prerequisites
|
| 9 |
------------------------------------------------------------------------------
|
| 10 |
|
| 11 |
Before compiling CDuce, you need to install recent releases of the
|
| 12 |
following packages:
|
| 13 |
|
| 14 |
ocaml
|
| 15 |
http://caml.inria.fr/ocaml/distrib.html
|
| 16 |
findlib
|
| 17 |
http://www.ocaml-programming.de/packages
|
| 18 |
wlex
|
| 19 |
http://www.eleves.ens.fr/home/frisch/soft.html#wlex
|
| 20 |
pcre-ocaml
|
| 21 |
http://www.ai.univie.ac.at/~markus/home/ocaml_sources.html
|
| 22 |
ocamlnet
|
| 23 |
http://ocamlnet.sourceforge.net/
|
| 24 |
pxp
|
| 25 |
http://www.ocaml-programming.de/packages/documentation/pxp/index_dev.html
|
| 26 |
|
| 27 |
|
| 28 |
Important notes:
|
| 29 |
|
| 30 |
- wlex: you only need to build and install the runtime support library
|
| 31 |
(not the wlex tool itself):
|
| 32 |
|
| 33 |
make runtime.all & make install_runtime
|
| 34 |
|
| 35 |
- pcre-ocaml: you may also need to install the PCRE library
|
| 36 |
from http://www.pcre.org/
|
| 37 |
|
| 38 |
./configure --prefix=<prefix directory> --disable-shared
|
| 39 |
|
| 40 |
If pcre was installed in non standard place then in Makefile.conf:
|
| 41 |
export STATIC = yes #this may help but first try without
|
| 42 |
export INCDIRS := <prefix_directory>/include
|
| 43 |
export LIBDIRS := <prefix_directory>/lib
|
| 44 |
|
| 45 |
After make all && make opt:
|
| 46 |
cd lib
|
| 47 |
cp ../META .
|
| 48 |
ocamlfind install pcre META *.a *.cma *.cmxa *.cmi *.mli
|
| 49 |
|
| 50 |
- PXP:
|
| 51 |
CDuce requires a development version >= 1.1.93.
|
| 52 |
|
| 53 |
|
| 54 |
------------------------------------------------------------------------------
|
| 55 |
Compilation
|
| 56 |
------------------------------------------------------------------------------
|
| 57 |
|
| 58 |
You need a GNU Make (or equivalent) to use the Makefile from the
|
| 59 |
distribution. It defines the following goals:
|
| 60 |
|
| 61 |
- make cduce / cduce.opt
|
| 62 |
compiles the CDuce command line interpreter
|
| 63 |
|
| 64 |
- make dtd2cduce
|
| 65 |
compiles the dtd2cduce tools (converts DTD to CDuce types)
|
| 66 |
|
| 67 |
- make webiface / webiface.opt
|
| 68 |
compiles the CDuce web interface interpreter (to be used as a CGI script)
|
| 69 |
|
| 70 |
- make local_website
|
| 71 |
compiles in the web/ directory the HTML files of CDuce website
|
| 72 |
(including the tutorial)
|