Re: [Toss-devel] compile with ocamllex + menhir + js_of_ocaml
Status: Beta
Brought to you by:
lukaszkaiser
|
From: Lukasz K. <luk...@gm...> - 2013-01-17 23:58:17
|
Dear Thomas, > In your mini OCaml tutorial, you explain how to compile a project using > ocamllex, menhir and js_of_ocaml using ocamlbuild but your explanations make > the assumption that the files needed for js_of_ocaml are in > /opt/local/lib/ocaml/site-lib. Unfortunately I installed js_of_ocaml using > OPAM and don't know where it is installed (and don't want to because it may > change if I switch to another version of ocaml/js_of_ocaml). indeed - we make some assumptions because it is very hard to anticipate all possible ways of installing js_of_ocaml. If you are under a POSIX system (e.g. Linux or Mac OS) then maybe it is enough if you do "locate js_of_ocaml" in the terminal. (You must have locate installed, it often comes by default, but not always.) This should show you the path to js_of_ocaml on your system. A shorter option with locate is e.g. "locate pa_js.cmo", you can also search your system for the pa_js.cmo file in many other ways. I hope this helps to find your js_of_ocaml - I'd be happy to add a more general solution to the tutorial, but the OPAM websited so not seem to give any direct hints where the OPAM packages are placed, so I don't know how to do this for now. I still hope you will locate your packages without problems, do not hesitate to write if you need anything, Best regards! Lukasz Kaiser |