Version française
Home     About     Download     Resources     Contact us    
Browse thread
Unbound module XHTML.M
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Mihamina Rakotomandimby (R12y) <mihamina@l...>
Subject: Unbound module XHTML.M
Hi,
(already posted in OCsigen ML,
but seems top be unresponsive list)

Following the tutorial:
http://ocsigen.org/tutorial1.0.0-1

        open Lwt
        open XHTML.M
        open Eliom_services
        open Eliom_parameters
        open Eliom_sessions
        open Eliom_predefmod.Xhtml

        let coucou =
          Eliom_predefmod.Xhtml.register_new_service
            ~path:["coucou"]
            ~get_params:Eliom_parameters.unit
            (fun _ () () ->
               Lwt.return
                 (XHTML.M.html
                 (XHTML.M.head (XHTML.M.title (XHTML.M.pcdata "")) [])
                 (XHTML.M.body [XHTML.M.h1 [XHTML.M.pcdata "Hallo!"]])))


when trying to compile:
     ocamlc \
     -I /usr/lib/ocsigen/extensions/ \
     -I /usr/lib/ocaml/3.10.2/lwt/ \
     -c tutorial.ml
I got the error:
     File "tutorial.ml", line 2, characters 0-12:
     Unbound module XHTML.M

I am running Ubuntu 8.10 and the packaged OCsigen.

Would someone help?

I explain my paths:
$ ls -l /usr/lib/ocsigen/extensions/* | awk '{print $8}'
/usr/lib/ocsigen/extensions/accesscontrol.cmo
/usr/lib/ocsigen/extensions/authbasic.cmo
/usr/lib/ocsigen/extensions/cgimod.cmo
/usr/lib/ocsigen/extensions/deflatemod.cmo
/usr/lib/ocsigen/extensions/eliom.cma
/usr/lib/ocsigen/extensions/ocsidbm
/usr/lib/ocsigen/extensions/ocsipersist-dbm.cma
/usr/lib/ocsigen/extensions/ocsipersist-sqlite.cma
/usr/lib/ocsigen/extensions/outputfilter.cmo
/usr/lib/ocsigen/extensions/redirectmod.cmo
/usr/lib/ocsigen/extensions/revproxy.cmo
/usr/lib/ocsigen/extensions/staticmod.cmo
/usr/lib/ocsigen/extensions/userconf.cmo

and:
$ ls -l /usr/lib/ocaml/3.10.2/lwt/* | awk '{print $8}'
/usr/lib/ocaml/3.10.2/lwt/lwt.a
/usr/lib/ocaml/3.10.2/lwt/lwt_chan.cmi
/usr/lib/ocaml/3.10.2/lwt/lwt_chan.cmx
/usr/lib/ocaml/3.10.2/lwt/lwt_chan.mli
/usr/lib/ocaml/3.10.2/lwt/lwt.cma
/usr/lib/ocaml/3.10.2/lwt/lwt.cmi
/usr/lib/ocaml/3.10.2/lwt/lwt.cmx
/usr/lib/ocaml/3.10.2/lwt/lwt.cmxa
/usr/lib/ocaml/3.10.2/lwt/lwt_extra.a
/usr/lib/ocaml/3.10.2/lwt/lwt_extra.cma
/usr/lib/ocaml/3.10.2/lwt/lwt_extra.cmxa
/usr/lib/ocaml/3.10.2/lwt/lwt_lib.cmi
/usr/lib/ocaml/3.10.2/lwt/lwt_lib.cmx
/usr/lib/ocaml/3.10.2/lwt/lwt_lib.mli
/usr/lib/ocaml/3.10.2/lwt/lwt.mli
/usr/lib/ocaml/3.10.2/lwt/lwt_mutex.cmi
/usr/lib/ocaml/3.10.2/lwt/lwt_mutex.cmx
/usr/lib/ocaml/3.10.2/lwt/lwt_mutex.mli
/usr/lib/ocaml/3.10.2/lwt/lwt_pool.cmi
/usr/lib/ocaml/3.10.2/lwt/lwt_pool.cmx
/usr/lib/ocaml/3.10.2/lwt/lwt_pool.mli
/usr/lib/ocaml/3.10.2/lwt/lwt_preemptive.a
/usr/lib/ocaml/3.10.2/lwt/lwt_preemptive.cma
/usr/lib/ocaml/3.10.2/lwt/lwt_preemptive.cmi
/usr/lib/ocaml/3.10.2/lwt/lwt_preemptive.cmx
/usr/lib/ocaml/3.10.2/lwt/lwt_preemptive.cmxa
/usr/lib/ocaml/3.10.2/lwt/lwt_preemptive.mli
/usr/lib/ocaml/3.10.2/lwt/lwt_ssl.a
/usr/lib/ocaml/3.10.2/lwt/lwt_ssl.cma
/usr/lib/ocaml/3.10.2/lwt/lwt_ssl.cmi
/usr/lib/ocaml/3.10.2/lwt/lwt_ssl.cmx
/usr/lib/ocaml/3.10.2/lwt/lwt_ssl.cmxa
/usr/lib/ocaml/3.10.2/lwt/lwt_ssl.mli
/usr/lib/ocaml/3.10.2/lwt/lwt_timeout.cmi
/usr/lib/ocaml/3.10.2/lwt/lwt_timeout.cmx
/usr/lib/ocaml/3.10.2/lwt/lwt_timeout.mli
/usr/lib/ocaml/3.10.2/lwt/lwt_unix.cmi
/usr/lib/ocaml/3.10.2/lwt/lwt_unix.cmx
/usr/lib/ocaml/3.10.2/lwt/lwt_unix.mli
/usr/lib/ocaml/3.10.2/lwt/lwt_util.cmi
/usr/lib/ocaml/3.10.2/lwt/lwt_util.cmx
/usr/lib/ocaml/3.10.2/lwt/lwt_util.mli
/usr/lib/ocaml/3.10.2/lwt/META
/usr/lib/ocaml/3.10.2/lwt/pqueue.cmi
/usr/lib/ocaml/3.10.2/lwt/pqueue.cmx
/usr/lib/ocaml/3.10.2/lwt/pqueue.mli

-- 
Chef de projet chez Vectoris
http://www.google.com/search?q=mihamina+rakotomandimby