INSTALL.WIN32 3.66 KB
Newer Older
1
                 Installation Notes for Windows NT/2000/XP
2 3 4 5 6 7
                 =========================================


CDuce can be executed on Microsoft Windows by using the
RedHat/Cygnus environment Cygwin freely available at

8
http://www.cygwin.com/
9

10 11 12
The executable needs the cygwin1.dll that is distributed 
under GPL license. This is not compatible with the CDuce license.
For this reason we do not provide binaries but give here detailed 
13 14 15 16 17 18 19
instructions about how to compile CDuce sources under Cygwin/Windows.


------------------------------------------------------------------------------
Prerequisites
------------------------------------------------------------------------------

Karoline Malmkjaer's avatar
Karoline Malmkjaer committed
20 21 22
Before compiling CDuce on Windows, you need to install the
following releases of the these packages (newer releases may
work):
23 24 25


cygwin
26
  http://www.cygwin.com
Karoline Malmkjaer's avatar
Karoline Malmkjaer committed
27
ocaml 3.10.0
28
  http://caml.inria.fr/ocaml/distrib.html
Karoline Malmkjaer's avatar
Karoline Malmkjaer committed
29
findlib 1.2.1   
30
  http://www.ocaml-programming.de/packages
Karoline Malmkjaer's avatar
Karoline Malmkjaer committed
31 32 33 34 35 36 37
ulex 1.0
  http://www.cduce.org/download.html
pcre-ocaml
  http://ocaml.info/home/ocaml_sources.html
ocamlnet 2.2.9
  http://www.ocaml-programming.de/packages
pxp 1.2.0
38 39 40 41 42
  http://www.ocaml-programming.de/packages/documentation/pxp/index_dev.html


Installation notes (you are advised to follow this order):

Karoline Malmkjaer's avatar
Karoline Malmkjaer committed
43

44 45 46 47 48 49 50 51 52 53 54 55 56
1) Download and execute cygwin setup.exe.
   - Choose Internet installation
   - Choose a root directory whose path has no blanks in it
   - Choose as Local Package Directory <your root>/usr/src (optional)
   - Choose the mirror closest to you
   - When asked to select the packages to install add to the default
     choices the following packages:
       Devel/
         autoconf*
         automake*
         binutils
         gcc*
         make
57
         patchutils
Karoline Malmkjaer's avatar
Karoline Malmkjaer committed
58 59
       Interpreters/
         m4
60
       Lib/
61
	 libpcre
Karoline Malmkjaer's avatar
Karoline Malmkjaer committed
62 63
         pcre
	 pcre-devel
64 65 66 67 68
     you may also find useful to install the following packages
       Editors/
         emacs or vim (no trolls)
       Net/
         ncftp
Karoline Malmkjaer's avatar
Karoline Malmkjaer committed
69
         openssh
70
       Devel/
Karoline Malmkjaer's avatar
Karoline Malmkjaer committed
71 72
         binutils
	 subversion
73
       Utils/
74
         bc
Karoline Malmkjaer's avatar
Karoline Malmkjaer committed
75 76 77
	 bzip2
         diff
	 diffutils
78
         file
Karoline Malmkjaer's avatar
Karoline Malmkjaer committed
79 80
         patch
	 patchutils
81
     then proceed with installation
82 83 84


2) Download (we suggest in /usr/src) and install Ocaml
Karoline Malmkjaer's avatar
Karoline Malmkjaer committed
85 86 87 88 89 90 91 92 93
   [For the impatient:
     ./configure
     make world.opt
     make install]


3) Download (guess where) and install findlib.

   A plain 
94

Karoline Malmkjaer's avatar
Karoline Malmkjaer committed
95 96 97 98
     ./configure
     make all
     make opt
     make install
99

Karoline Malmkjaer's avatar
Karoline Malmkjaer committed
100 101 102 103
   should work, but it is worth checking that the paths that come
   out looking right in Makefile.config after ./configure.
   Otherwise correct paths in findlib.conf and re-run configure.
   E.g.: ./configure -bindir /usr/local/bin -mandir /usr/local/man
104 105


106
4) Download and install ulex 
107
   The ocaml 3.10.0 version of ulex on cygwin requires to add the
Karoline Malmkjaer's avatar
Karoline Malmkjaer committed
108 109 110 111
   "-classic-display" option to ocamlbuild in the Makefile.
     make all
     make all.opt
     make install
112 113


114
5) Download and install pcre-ocaml. 
115 116
   If you get an error regarding dynmaically loaded library try to
   add STATIC=yes in Makefile.conf
117

Karoline Malmkjaer's avatar
Karoline Malmkjaer committed
118 119
     make
     make install
120
   
Karoline Malmkjaer's avatar
Karoline Malmkjaer committed
121

122 123
6) Download and install ocamlnet

Karoline Malmkjaer's avatar
Karoline Malmkjaer committed
124 125 126 127 128
   ./configure
   make all
   make opt
   make install

129 130 131

7) PXP:
   CDuce requires a development version >= 1.1.93.
Karoline Malmkjaer's avatar
Karoline Malmkjaer committed
132 133 134 135 136 137 138 139

   ./configure -without-wlex -without-wlex-compat -lexlist utf8,iso88591 -without-pp
   (there is a problem with the preprocessor in cygwin, so you
   get an error if you don't add the -without-pp)

   make all
   make opt
   make install
140 141 142 143 144 145 146


Now you can compile CDuce sources as indicated in the INSTALL file 
namely 

  
------------------------------------------------------------------------------
147
Compilation, installation
148 149
------------------------------------------------------------------------------

150
See the INSTALL file.
151 152 153 154