ocamlfind

The findlib package manager for OCaml.

TLDR

Compile a source file to a native binary and link with packages

$ ocamlfind ocamlopt -package [package1],[package2] -linkpkg -o [executable] [source_file.ml]
copy

Compile a source file to a bytecode binary and link with packages

$ ocamlfind ocamlc -package [package1],[package2] -linkpkg -o [executable] [source_file.ml]
copy

Cross-compile for a different platform

$ ocamlfind -toolchain [cross-toolchain] ocamlopt -o [executable] [source_file.ml]
copy

Copied to clipboard
free 100$ digital ocean credit