* Unbound module XHTML.M
@ 2009-02-03 12:09 Mihamina Rakotomandimby (R12y)
2009-02-03 12:28 ` [Caml-list] " David MENTRE
0 siblings, 1 reply; 4+ messages in thread
From: Mihamina Rakotomandimby (R12y) @ 2009-02-03 12:09 UTC (permalink / raw)
To: caml-list
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] Unbound module XHTML.M
2009-02-03 12:09 Unbound module XHTML.M Mihamina Rakotomandimby (R12y)
@ 2009-02-03 12:28 ` David MENTRE
2009-02-03 12:39 ` Mihamina Rakotomandimby (R12y)
0 siblings, 1 reply; 4+ messages in thread
From: David MENTRE @ 2009-02-03 12:28 UTC (permalink / raw)
To: Mihamina Rakotomandimby (R12y); +Cc: caml-list, ocsigen
Hello Mihamina,
On Tue, Feb 3, 2009 at 13:09, Mihamina Rakotomandimby (R12y)
<mihamina@lab.vectoris.fr> wrote:
> (already posted in OCsigen ML, but seems top be unresponsive list)
Maybe you should wait more than 15 minutes...
> 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've you tried with:
ocamlc \
-I /usr/lib/ocsigen/ \ # <-- without extensions/
-I /usr/lib/ocaml/3.10.2/lwt/ \
-c tutorial.ml
?
Yours,
d.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] Unbound module XHTML.M
2009-02-03 12:28 ` [Caml-list] " David MENTRE
@ 2009-02-03 12:39 ` Mihamina Rakotomandimby (R12y)
2009-02-04 8:17 ` [Caml-list] [solved] " Mihamina Rakotomandimby (R12y)
0 siblings, 1 reply; 4+ messages in thread
From: Mihamina Rakotomandimby (R12y) @ 2009-02-03 12:39 UTC (permalink / raw)
To: caml-list, ocsigen
David MENTRE wrote:
>> (already posted in OCsigen ML, but seems top be unresponsive list)
> Maybe you should wait more than 15 minutes...
The unresponsiveness I meant was not about this present thread.
I already complained to Vincent, but as soon as vincent answered, there
was an activity.
Then nothing. Anyway, I did not expect an answer within 15 minutes, dont
worry, I am used with "community channels" ;-)
>> 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've you tried with:
> ocamlc \
> -I /usr/lib/ocsigen/ \ # <-- without extensions/
> -I /usr/lib/ocaml/3.10.2/lwt/ \
> -c tutorial.ml
> ?
Yes, same error message:
File "tutorial.ml", line 2, characters 0-12:
Unbound module XHTML.M
--
Chef de projet chez Vectoris
http://www.google.com/search?q=mihamina+rakotomandimby
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] [solved] Unbound module XHTML.M
2009-02-03 12:39 ` Mihamina Rakotomandimby (R12y)
@ 2009-02-04 8:17 ` Mihamina Rakotomandimby (R12y)
0 siblings, 0 replies; 4+ messages in thread
From: Mihamina Rakotomandimby (R12y) @ 2009-02-04 8:17 UTC (permalink / raw)
To: caml-list
> File "tutorial.ml", line 2, characters 0-12:
> Unbound module XHTML.M
SOlved by installing ocsigen-dev (Running Ubuntu)
--
Chef de projet chez Vectoris
http://www.google.com/search?q=mihamina+rakotomandimby
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-02-04 8:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-03 12:09 Unbound module XHTML.M Mihamina Rakotomandimby (R12y)
2009-02-03 12:28 ` [Caml-list] " David MENTRE
2009-02-03 12:39 ` Mihamina Rakotomandimby (R12y)
2009-02-04 8:17 ` [Caml-list] [solved] " Mihamina Rakotomandimby (R12y)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox