ocamlfind

The findlib package manager for OCaml. Simplifies linking executables with external libraries. More information: <http://projects.camlcity.org/projects/findlib.html>.

Install

All systems
curl cmd.cat/ocamlfind.sh
Debian Debian
apt-get install ocaml-findlib
Ubuntu
apt-get install ocaml-findlib
Alpine
apk add ocaml-findlib
Arch Arch Linux
pacman -S ocaml-findlib
image/svg+xml Kali Linux
apt-get install ocaml-findlib
CentOS
yum install ocaml-findlib
Fedora
dnf install ocaml-findlib
Windows (WSL2)
sudo apt-get update sudo apt-get install ocaml-findlib
OS X
brew install ocaml-findlib
Raspbian
apt-get install ocaml-findlib
Docker
docker run cmd.cat/ocamlfind ocamlfind powered by Commando

The findlib package manager for OCaml. Simplifies linking executables with external libraries. More information: <http://projects.camlcity.org/projects/findlib.html>.

  • 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

© tl;dr; authors and contributors