L. Soret
L. Soret

Reputation: 179

opam install error "no solution found"

I came across a bug when installing certain packages using opam.

> opam install foo
Sorry, no solution found: there seems to be a problem with your request.

No solution found, exiting

Upvotes: 4

Views: 2753

Answers (2)

Daniel Bünzli
Daniel Bünzli

Reputation: 5167

According to particular form of the error message I read you are using the opam v1.2 internal solver (which you can confirm via opam config report). This solver is no longer able to cope with the repository.

Either install an external solver, see here or switch to opam v2 (currently in rc) which bundles a decent solver.

Upvotes: 5

L. Soret
L. Soret

Reputation: 179

Opam was using a version of the ocaml compiler that wasn't able to install this package. So unistall the current version and use opam switch to set opam to use the latest ocaml compiler.

> opam switch x.xx.x

Then make sure to update/upgrade opam.

> opam update
> opam upgrade

Upvotes: 3

Related Questions