- Preparation: MSYS2 MinGW64, make sure
git
,make
,diffutils
, andgcc
installed, 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_library
location viaocamlc -config
, should be/mingw64/lib/ocaml
.