Hey,
I followed this tutorial: OCaml for Windows - Installation
The graphical installer didn’t work for me so I tried following the manual install guide. I completed all the steps. But I had the same error there too so I tried to create a switch from Windows CMD.
The variables you mentioned weren’t defined for me as well, I defined them by set OPAMCURL=curl and set OPAMFETCH=wget. I checked if they were truly set by:
echo %OPAMCURL%
curl
and
echo %OPAMFETCH%
wget
Then I updated opam:
opam update
<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] no changes from git+https://github.com/fdopen/opam-repository-mingw.git#opam2
The same error occured again:
opam switch create 4.14.0+mingw64c
<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ocaml-variants.4.14.0+mingw64c] found in cache
[ERROR] The sources of the following couldn’t be obtained, aborting:
- ocaml-variants.4.14.0+mingw64c
Switch initialisation failed: clean up? (‘n’ will leave the switch partially installed) [Y/n] y
Fatal error: exception Not_found
![]()