There are two ways to setup this opam repository:
You can try the graphical installer:
The installer will first create a customized cygwin environment and then set up opam and OCaml inside this environment. The setup should be easy and fast this way. However, the installer won’t allow you to set custom options: proxy configuration, select the initial OCaml version to install, etc. (If possible, the 64-bit version of cygwin is installed. The 32-bit version is no longer recommended)
- Download links:
Install cygwin and install the following additional packages through cywin’s setup utility: rsync, patch, diffutils, curl, make, unzip, git, m4, perl - and of course mingw64-i686-gcc-core or mingw64-x86_64-gcc-core.
If your logon name contains whitespace characters (e.g. ‘Firstname Lastname’) or any other character that would require quoting inside a unix shell or cmd.exe, follow the instructions there. The name of your home directory should only contain alphanumeric ascii letters, no whitespaces (both, the windows version
C:\cygwin\home\userand the posix version
- Download one of the archives listed above. The archives contain native versions of opam, flexdll and aspcud. They are all not linked against cygwin1.dll, so you can use them both with either the 32-bit or 64-bit version of cygwin. Then proceed inside a cygwin shell:
The above commands will download and install precompiled versions of OCaml. You can also compile it from source:
There are also mingw-versions for the obsolete 4.01.0 version of OCaml available.
depext and depext-cygwinports, if you want
to use libraries like pcre or