I have installed Opam 2.2.0 on Windows and opam switch list-available
doesn’t show any OCaml5 switches.
I have checked the repo:
$opam repo --all
# Repository # Url
# Switches(rank)
default git+https://github.com/ocaml-opam/opam-repository-mingw
<default> default 4.14.1+msvc64c mingw fresh 4.14.1+msvc32c
Then the command opam init git+https://github.com/dra27/opam-repository.git#windows-initial
which is recommended when installing doesn’t seem to have an effect.
And I note that opam-repository-mingw/packages/ocaml at sunset · ocaml-opam/opam-repository-mingw · GitHub doesn’t include OCaml5 variants.
hhugo
August 24, 2024, 1:35pm
2
Opam 2.2 support windows with the default opam repo. You should not use the opam-repository-mingw repo.
hhugo
August 24, 2024, 1:39pm
3
I suspect you’re looking at outdated docs such as opam - opam 2.2.0~beta2 - Windows OCaml
The latest release is opam - Platform Blog
Yes, I had installed the 2.2.0-beta2, then installed afterward the 2.2.0 on it.
Ok… then Delete (or rename) C:\Users\frede\AppData\Local\opam
and typing $opam init --reinit -ni
fix my issue.
I just should upgrade to 2.2.1…
2.2.1 installed, but that fails on installing lwt
or xdg
. The Dune file search a x86_64-w64-mingw32-gcc.exe
file… and on Cygwin, there are no .exe
suffixes.
hhugo
August 24, 2024, 7:45pm
6
Try (re)installing mingw-w64-shims.
If you still have issues, please post the logs so it’s easier to investigate