logo
down
shadow

Ocamldoc "Unbound module Thread" without ocamlfind


Ocamldoc "Unbound module Thread" without ocamlfind

By : user2955355
Date : November 22 2020, 10:38 AM
To fix the issue you can do
-thread or -package aren't supported by ocamldoc, and -I -thread doesn't work.
code :
$ ls src
foo.ml bar.ml baz.zip
$ ls -1 src/*.ml | cut -f1 -d'.' > project.odocl
$ cat project.odocl
src/foo
src/bar

$ ocamlbuild project.docdir/index.html
[...]
$ ls project.docdir
Bar.html
Foo.html
index.html
[...]


Share : facebook icon twitter icon
Ocamlfind installed my own lib but still `Unbound module` when using my lib

Ocamlfind installed my own lib but still `Unbound module` when using my lib


By : Fernando López
Date : March 29 2020, 07:55 AM
may help you . figured it out by myself.
I should also install the .cmi and .o files. If without .o file, native cannot be compiled.
OCamlfind local library unbound module

OCamlfind local library unbound module


By : Electromuis
Date : March 29 2020, 07:55 AM
Hope this helps You should use LIB_PACK_NAME variable if you want to pack your modules under umbrella namespace, like OWebl, otherwise they will be available just as it is, e.g. Response, Rule, etc. Also, you should specify the mli files as well as ml files in SOURCES variable. And finally, you shouldn't forget to install cmi files, as well as .a files. Installing mli files is also considered a good tradition, although is not strictly required. Also, consider using OCamlMakefile installation facilities instead of custom installation script.
different results for commands "sudo ocamlfind list" and "ocamlfind list"

different results for commands "sudo ocamlfind list" and "ocamlfind list"


By : Nasara Reddy
Date : March 29 2020, 07:55 AM
around this issue eval $(opam config env) populates your environment with variables, that helps ocamlfind to find libraries, c.f., PIP's virtual environment in Python.
When you're evaluating this command under the user account, you populate environment only for a user, so that it is not visible for other users including root. Moreover, usually, you install ocaml packages in a user-local mode, not system wide.
ocamlopt and ocamlbuild give an Unbound module error despite ocamlfind seeing the required module

ocamlopt and ocamlbuild give an Unbound module error despite ocamlfind seeing the required module


By : bodison
Date : March 29 2020, 07:55 AM
will be helpful for those in need I'm attempting to build the xencat tool from this project. When I try to use ocamlopt to build it, I get , ocamlbuild -use-ocamlfind -package cmdliner xencat.byte
?
OASIS "Selective" Unbound module error for an internal module

OASIS "Selective" Unbound module error for an internal module


By : talentseeker
Date : March 29 2020, 07:55 AM
I hope this helps you . Lwt has an Infix module, which shadow your Infix module. Just reverse the order of opens.
Note that opening Lwt is often considered not very good style. If you want to use lwt's infix operator, you should open Lwt.Infix instead.
shadow
Privacy Policy - Terms - Contact Us © ourworld-yourmove.org