| 13 |
Before compiling CDuce, you need to install recent releases of the |
Before compiling CDuce, you need to install recent releases of the |
| 14 |
following packages: |
following packages: |
| 15 |
|
|
| 16 |
ocaml |
ocaml => 3.07 |
| 17 |
http://caml.inria.fr/ocaml/distrib.html |
http://caml.inria.fr/ocaml/distrib.html |
| 18 |
findlib |
findlib |
| 19 |
http://www.ocaml-programming.de/packages |
http://www.ocaml-programming.de/packages |
| 20 |
wlex |
ulex |
| 21 |
http://www.eleves.ens.fr/home/frisch/soft.html#wlex |
http://www.cduce.org/download/ulex-0.2.tar.gz |
| 22 |
pcre-ocaml |
pcre-ocaml |
| 23 |
http://www.ai.univie.ac.at/~markus/home/ocaml_sources.html |
http://www.ai.univie.ac.at/~markus/home/ocaml_sources.html |
| 24 |
ocamlnet |
ocamlnet |
| 25 |
http://sourceforge.net/projects/ocamlnet |
http://sourceforge.net/projects/ocamlnet |
| 26 |
pxp |
pxp => 1.9.93 |
| 27 |
http://www.ocaml-programming.de/packages/documentation/pxp/index_dev.html |
http://www.ocaml-programming.de/packages/documentation/pxp/index_dev.html |
| 28 |
|
|
| 29 |
|
|
| 30 |
Important notes: |
Important notes: |
| 31 |
|
|
| 32 |
- the packages above must be installed in the order we used above. In |
- Ocaml: cduce uses recursive modules so versions of ocaml before 3.07 |
| 33 |
particular wlex _must_ be installed before pcre-ocaml and pxp. |
will not work. Also the standard distributions has two bugs that make |
| 34 |
|
cduce compilation fail. Patch ocaml source by |
| 35 |
- wlex: you only need to build and install the runtime support library |
|
| 36 |
(not the wlex tool itself): |
http://caml.inria.fr/bin/caml-bugs/fixed?id=1863;page=77;user=guest |
| 37 |
|
http://www.cduce.org/download/patch-ocaml-3.07 |
| 38 |
|
|
| 39 |
|
or (better) install ocaml cvs version |
| 40 |
|
cvs -d":pserver:anoncvs@camlcvs.inria.fr:/caml" login |
| 41 |
|
hit enter key when asked for password |
| 42 |
|
cvs -d":pserver:anoncvs@camlcvs.inria.fr:/caml" co ocaml |
| 43 |
|
|
| 44 |
make runtime.all && make install_runtime |
- the packages above must be installed in the order we used above. In |
| 45 |
|
particular ulex _must_ be installed before pcre-ocaml and pxp. |
| 46 |
|
|
| 47 |
- pcre-ocaml: you may also need to install the PCRE library |
- pcre-ocaml: you may also need to install the PCRE library |
| 48 |
from http://www.pcre.org/ |
from http://www.pcre.org/ [red-hat users, 4.3 package does |
| 49 |
|
not work with the latest pcre-ocaml version, use tarballs] |
| 50 |
|
>= 5.03 recommended but previous versions may work |
| 51 |
|
|
| 52 |
- PXP: |
- PXP: |
| 53 |
CDuce requires a development version >= 1.1.93. |
CDuce requires a development version >= 1.1.93. |
| 130 |
make install (* may require root privileges *) |
make install (* may require root privileges *) |
| 131 |
cd .. |
cd .. |
| 132 |
|
|
| 133 |
Then set EXPAT=true in Makefile.conf, and rebuild CDuce (make clean; |
Then set EXPAT=true in Makefile.conf, and rebuild CDuce |
| 134 |
make all). |
(make clean && make all). |
| 135 |
|
|
| 136 |
The interpreter is now using expat for loading XML files. |
The interpreter is now using expat for loading XML files. |
| 137 |
You can still use PXP by providing the --pxp switch on the command |
You can still use PXP by providing the --pxp switch on the command |