tutorial for ocamlnet2 fastcgi

Basile STARYNKEVITCH <[email protected]> Sun, 05 Apr 2009 19:37:33 +0200
Newsgroups gmane.comp.lang.ocaml.lib.net.devel
Message-ID <[email protected]>
Hello All

I am missing a tutorial for Ocamlnet2 Fastcgi 
(Debian/Sid/AMD64/Ocaml3.11 if that matters)

I want to at first compile, run, and deploy the 
examples/cgi/netcgi2/add_fcgi.ml example

Basically, the point is that my ocamlfind skills are very rusty. I 
remembered having being able to compile it a couple of years ago 
(perhaps at the time of ocamlnet1), but now I forgot all of the stuff.

BTW, the libocamlnet-ocaml-doc  Debian package does provide a 
/usr/share/doc/libocamlnet-ocaml-dev/examples/cgi/netcgi2 directory 
containing a Makefile which (being the same as the ocamlnet2 one) starts 
with
  TOP_DIR=../../..
This cannot work, since for the debian package the TOP_DIR is 
/usr/share/doc/libocamlnet-ocaml-doc which has no Makefile.rules

I really miss some tutorial information, eg how to use ocamlfind to 
compile a simple selfcontained fastcgi ocamlnet application like just 
add.ml & add_fcgi.ml (on a system, like my Debian/Sid, where ocamlnet is 
installed in standard system locations).

It really is a matter of understanding findlib, but I have forgotten all 
of it.

Regards.

-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***


------------------------------------------------------------------------------