- Preparation: MSYS2 MinGW64, make sure
git,make,diffutils, andgccinstalled, e.g. withpacman -S git make diffutils mingw-w64-x86_64-gcc. git clone https://github.com/ocaml/ocaml.git.git submodule update --init../configure, thenmake, and then install withmake install.
At this point ocaml, ocamlc, and ocamlopt is already installed on the MSYS2 MinGW64 environment, but you'll hit by error like "Unbound module Stdlib".
- Check
standard_librarylocation viaocamlc -config, should be/mingw64/lib/ocaml.