(file) Return to README CVS log (file) (dir) Up to [app-findlib-browser] / README

Diff for /README between version 1 and 2

version 1, Sun Jan 4 19:43:45 2004 UTC version 2, Sun Jan 4 19:46:46 2004 UTC
Line 3 
Line 3 
   
 REQUIREMENTS:  REQUIREMENTS:
   
 This script only works with Ocaml 2.02. Earlier releases are not  This script only works with Ocaml 3.07. Earlier releases are not
 supported.  supported.
   
 Of course, a "findlib" installation is required. You need release  Of course, a "findlib" installation is required. You need release
 0.2.2 or newer.  1.0.1 or newer.
   
 Furthermore, the Cgi module by J.-C.Filliatre is necessary; see  Furthermore, ocamlnet is required.
 http://www.lri.fr/~filliatr/ftp/ocaml/cgi/.  
   
 Note that "cgi" currently does not install itself "findlib"-based.  
 You can do it manually:  
   
    1.) Write a text file with name META containing:  
         requires = ""  
         archive(byte) = "cgi.cma"  
         archive(native) = "cgi.cmxa"  
    2.) Execute the commands:  
         ocamlc -c cgi.mli  
         ocamlc -a -o cgi.cma cgi.ml  
         ocamlopt -a -o cgi.cmxa cgi.ml  
         ocamlfind install cgi cgi.cmi cgi.mli cgi.cma cgi.cmxa META  
   
 You need a WWW server. Every WWW server that supports the CGI interface  You need a WWW server. Every WWW server that supports the CGI interface
 should work.  should work.
   
 CONFIGURATION:  
   
 There are two configurable sections in "browser.cgi".  
   
 - Variable TOPLOOP: This is the absolute path of the toploop that  
   is going to execute the script (if you want use the script).  
   You need really the absolute path, as www servers typically provide  
   only a minimal environment, especially PATH is minimal.  
   
 - browser_ocamlpath: This is a colon-separated list of additional  
   directories where packages are installed.  
   
 Furthermore, edit the Makefile:  
   
 - BINDIR: The directory where the executable should be installed.  
   This must be a directory in the document tree of your www server.  
   
 BUILD:  BUILD:
   
 - To use the script "browser.cgi", you need a toploop created by  - Normally you can invoke the script browser.cgi directly (check
   ocamlfind ocamlmktop -o ocamlfattop -linkpkg -custom \    the ocaml path, however).
         -package unix,str,findlib,cgi  
   
   Test the script by invoking ./browser.cgi; enter nothing as    Test the script by invoking ./browser.cgi; enter nothing as
   query string. The result must be an HTML page.    query string. The result must be an HTML page.


Legend:
Removed from v.1  
changed lines
  Added in v.2

SVN admin
Powered by
ViewCVS 1.0-dev