AptLynx

Command-line tool

ocaml-findlib

brew/ocaml-findlib

Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev

OCaml library manager

At a glance

Type
Command-line tool
Install on
macOS, Linux
Last checked
25 Oct 2026, 21:09 UTC

Install it

macOS

brew install ocaml-findlib

Linux

brew install ocaml-findlib

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

ocamlfind ocamlopt -package package1,package2,... -linkpkg -o path/to/executable path/to/source.ml

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

ocamlfind ocamlc -package package1,package2,... -linkpkg -o path/to/executable path/to/source.ml

Cross-compile for a different platform

ocamlfind -toolchain cross-toolchain ocamlopt -o path/to/executable path/to/source.ml

Related command-line tools

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents