ocamlc
The OCaml bytecode compiler. Produces executables runnable by the OCaml interpreter. More information: <https://ocaml.org>.
Install
- All systems
-
curl cmd.cat/ocamlc.sh
- Debian
-
apt-get install ocaml-nox
- Ubuntu
-
apt-get install ocaml-nox
- Alpine
-
apk add ocaml
- Arch Linux
-
pacman -S ocaml
- Kali Linux
-
apt-get install ocaml-nox
- CentOS
-
yum install ocaml
- Fedora
-
dnf install ocaml
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install ocaml-nox
- OS X
-
brew install ocaml
- Raspbian
-
apt-get install ocaml-nox
- Dockerfile
- dockerfile.run/ocamlc
- Docker
-
docker run cmd.cat/ocamlc ocamlc
powered by Commando
The OCaml bytecode compiler. Produces executables runnable by the OCaml interpreter. More information: <https://ocaml.org>.
-
Create a binary from a source file:
ocamlc path/to/source_file.ml
-
Create a named binary from a source file:
ocamlc -o path/to/binary path/to/source_file.ml
-
Automatically generate a module signature (interface) file:
ocamlc -i path/to/source_file.ml
© tl;dr; authors and contributors