OCPWin Installation Instructions

After downloading the OCPWin installer for your platform, follow these instructions to install OCPWin on your system.

Step 1 : Start the Installer

Click on the installer. Windows should warn you about the fact that it cannot verify the file. Just click on Run to continue.

Step 2: Verify the Installer Platform

Verify that you are running the installer for your platform: OCPWin32 can run on both Windows 32 and 64 bits, but OCPWIN64 is only for Windows 64 bits (now, very common). Click on Next to continue.

Step 3: Choose the Start Menu Folder

Choose the Start Menu folder where OCPWin should install its links. Usually, you do not need to modify this item.

Step 4: Read the License Agreement

OCPWin license agreement allows you to build application for any purpose with it, with the only restriction that you should not redistribute parts of the compiler itself. If you are looking for a less restrictive license, or an open-source license, you should contract with OCamlPro directly. Click on I agree if you agree with that license.

Step 5: Choose the Installation Directory

You can choose where to install OCPWin. Normally, it does not matter much, as the installer will automatically add the bin sub-directory to your PATH, and you will not need to configure more your system. You should probably also choose a directory name that does not contain spaces, as they might, sometimes, interfere with some programs.

Step 6: Watch the Installation

The installer will now copy the files in the directory you chose, run post-install scripts and configure the system to have OCaml in the PATH.

Step 7: Finish the installation

Once it is finished, you can click on Finish to exit the installer.

Step 8: Start a Terminal

In the Start Menu, type cmd to launch a terminal (you should avoid using Cygwin with OCPWin as Mingw installed by OCPWin might interfere with Cygwin version).

Step 9: Check your Configuration

In the terminal, you can try a few OCaml commands, such as ocamlc -v. Beware that, although ocamlbuild is installed, it does not work correctly outside of Cygwin.

You are done !

You can now enjoy using OCaml with your preferred editor.

For beginners, we advise you to start with OCaml-Top.