
Opam, OCaml's package manager, introduces the concept of "switches," which is a compiler with a set of packages (libraries and other files). On your behalf however, only OCaml version 4.14.0 can be installed with setup.exe now. On Windows, the best way is to use a traditional setup.exe that will initialise opam On Unix, the best way to install OCaml is with opam, OCaml's package manager. This isĮspecially useful since different projects might require different versions of On the contrary, OCaml's official package manager, opam, allows you toĮasily switch between OCaml versions and much more. OCaml is available as a package in most Linux distributions however, it is For more information on using the CLI, please visit the Command Line Crash Course video to learn some basics. Ensure you use the exact case and spacing shown, then hit return/enter at the end of every line. Type each command after the prompt $, although it's often represented by a %, >, or another symbol as well. The code blocks (in black) on this page show the required commands (the text after # gives more information on the following commands).


There is an older shell called "Command Prompt" you can use as well

When this page asks you to enter commands in your shell, use the following instructions for your system: It's also known as a command line interface (CLI). Guidelines for Following Instructions on this PageĪ shell is a program that will let you enter commands in a text window using only your keyboard. Interested in reading OCaml on Windows first.

If you want to set up OCaml on Windows, you might be The following instructions work on Linux, BSD, and macOS. Of course, this includes installing the compiler itself, but it also installs a build system, a package manager, an LSP server to support your editor, and a few other tools that we describe later, setting up editor support, and bootstrapping a new project. This page will walk you through the installation of everything you need for a comfortable development environment to write projects in OCaml code.
