Builds failing when trying to install opam packages

I’m trying to install some opam packages, specifically utop, dune, alcotest, ppx_deriving, and ocamlformat. However, I’m getting loads of errors and can’t figure out how to resolves them.

Here are screenshots of my error output:
Actually, I’m only allowed one media upload:

Hi, it’s much better and more accessible to post messages as plain text with proper markdown formatting (code with triple backticks). Screenshots are not as accessible.

Usually an issue like this is due to your local copy of the opam repository index being out of date. Try running opam update, then installing the packages. Of course make sure you are on an opam switch with a recent version of OCaml.

2 Likes