I am trying to install a coq-contrib package OPAM. I am still new to OPAM and Coq. I was using OPAM 1.2.2 and was getting this:
$ opam install coq-graph-basics
Your request can't be satisfied:
- No package matches coq-graph-basics
No solution found, exiting
even though I could see it when running
opam search coq-
After reading this issue https://github.com/ocaml/opam/issues/2526, I tried upgrading to OPAM 2.0.0.
This is what I got this time when trying to install the package:
$ opam install coq-graph-basics
The following dependencies couldn't be met:
- coq-graph-basics → coq < 8.6~
not available because the package is pinned to version 8.7.2
No solution found, exiting
I am not sure what I am doing wrong here. Does anyone know what these messages mean? What am I missing?
Thanks
opam repo add coq-released https://coq.inria.fr/opam/released
(I don't remember if it's necessary butopam update
won't hurt). – Viscosecoq-graph-basics
, but it is not compatible with recent versions of Coq (>= 8.6), and your version is recent (8.7.2). One solution could be to downgrade Coq, but here you rather need a newer version of the package that is compatible with recent versions of Coq. See @AntonTrunov's comment to tell opam about a repository with more recent versions of Coq packages. – Havelock