Hi, I’m a complete OCaml beginner here, learning OCaml for a project. Now I am using ocaml 5.0.0+trunk.
Recently I have a problem getting OPAM to install the “core” library. When I executed
opam install core, there would always be a error as follows:
[ERROR] Package conflict!
- Incompatible packages:
- (invariant) → ocaml-variants = 5.0.0+trunk → base-domains
You can temporarily relax the switch invariant with `–update-invariant’
No solution found, exiting
opam install core --update-invariant will downgrade the ocaml from 5.0.0 to 4.12.0.
I had used
opam repo add janestreet-bleeding https://ocaml.janestreet.com/opam-repository to use another repository but still got the same result.
I wonder if someone could give me some suggestions? Thanks in advance!