opam upgrade wants to downgrade a bunch of packages

会有一股神秘感。 提交于 2019-12-06 00:25:22

Long story short: OPAM has a very expressive language for dependencies that several solvers understand. The small, simple solver included in OPAM by default is a bit of a hack that has these kind of terrible behaviors when pushed around too hard. At this point, you should install an external solver such as aspcud that will do a better job.

More details in a long mail of Roberto Di Cosmo to the caml-list last month:

External dependency solvers for opam

Quick fix: give the solver more time

export OPAMSOLVERTIMEOUT=60

and try again: opam upgrade

To add to gasche's answer: Setup for an external dependency solver is described on the CUDF Solver Farm

Edit: If you're experiencing this with opam version 1.1.1, try upgrading to a more recent version. My similar problem was solved by the upgrade.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!