INSTALL.WIN32 3.35 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 20 21 22 23 24 25
instructions about how to compile CDuce sources under Cygwin/Windows.



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

Before compiling CDuce on Windows, you need to install recent 
releases of the following packages:


cygwin
26
  http://www.cygwin.com
27 28 29 30 31 32 33 34 35
ocaml      
  http://caml.inria.fr/ocaml/distrib.html
findlib    
  http://www.ocaml-programming.de/packages
wlex       
  http://www.eleves.ens.fr/home/frisch/soft.html#wlex
pcre-ocaml 
  http://www.ai.univie.ac.at/~markus/home/ocaml_sources.html
ocamlnet   
36
  http://sourceforge.net/projects/ocamlnet
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
pxp
  http://www.ocaml-programming.de/packages/documentation/pxp/index_dev.html


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

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
       Lib/
         pcre **both binaries and sources**
     you may also find useful to install the following packages
       Editors/
         emacs or vim (no trolls)
       Net/
         openssh
         ncftp
       Devel/
         cvs
       Utils/
         diff
         patch
69
     then proceed with installation
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84


2) Download (we suggest in /usr/src) and install Ocaml
   [For the impatients: ./configure && make world.opt]


3) Download (guess where) and install findlib
   a plain ./configure && make all && make opt && make install
   should work 


4) Download and install wlex: 
   you only need to build and install the runtime support library
   (not the wlex tool itself):

85
     make runtime.all && make install_runtime
86 87

5) Download and unpack pcre-ocaml. 
88
   - copy pcre_make.win32/pcre.h to the pcre source directory you
89
     installed at point (1) (it should be in /usr/src/pcre-X.Y-Z)
90 91
   - cd in the source directory of pcre, copy or rename the file 
     config.in as config.h, and change in this new file 
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
     the macros that define HAVE_STRERROR and HAVE_MEMMOVE to 
     define them as 1 rather than 0.
   - Compile and install by
     make STATIC=1
     make install STATIC=1

   
6) Download and install ocamlnet


7) PXP:
   CDuce requires a development version >= 1.1.93.
   configure with the following options
   ./configure -with-lex -with-lex-compat
   make all && make opt && make install



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

  
------------------------------------------------------------------------------
115
Compilation, installation
116 117
------------------------------------------------------------------------------

118
See the INSTALL file.