Plasma GitLab Archive
Projects Blog Knowledge

Chapter 6. How to create your own packages

Installing and removing packages

The ocamlfind command can install and remove packages. For example, to install a package p containing the files META, m1.cmi, m2.cmi, p.cma, run

ocamlfind install p META m1.cmi m2.cmi p.cma
This installs the files into the default location for new packages (set in ocamlfind.conf). If you have files that are not always built, add these after the -optional switch:
ocamlfind install p META m1.cmi m2.cmi p.cma -optional p.cmxa p.cmxs
To remove the package, run
ocamlfind remove p
Note that every package must have a META file, it is not possible to omit it.
This web site is published by Informatikb├╝ro Gerd Stolpmann
Powered by Caml