pcre-ocaml / README.win32

1. Read README.win32 in the OCaml distribution and download the third
   party software for the native windows distribution.  Prepare a shell
   with the right PATH; typically create a .bat file containing:

   CALL "C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat"
   CALL "c:\Program Files\Microsoft Platform SDK"\SetEnv.Cmd /SRV32
   @cmd

   From now on, we assume you use such a shell.

2. Go to <http://www.pcre.org/>, download the latest pcre tarball
   (tested with 7.2), and unpack it (say in pcre-7.2).

3. Possibly modify make_pcre.ml (in directory pcre_make.win32) to set
   the paths to your will.  The default is to install in the pcre/
   subdirectory of the default OCaml library location and should be
   fine for most cases.  (The C pcre library is small, you should not
   worry about having multiple copies on your system.)

4. Copy the file make_pcre.ml to pcre-7.2 and execute:

     ocaml make_pcre.ml
     make

   This will compile and install pcre.

5. Copy make_pcre.ml (yes the same as above!) to the lib/ subdirectory
   of the directory where you unpacked pcre-ocaml, go into lib/ and
   type:

     ocaml make_pcre.ml
     make

   This will compile and install pcre-ocaml.

6. Optionally, go to the any example directory and type

     make

   to compile the example there.

Enjoy!

Christophe Troestler and Markus Mottl

July 12, 2007
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.