coq 8.11.0 与 ocaml 4.10 不兼容?

coq 8.11.0 incompatible with ocaml 4.10?

我正在使用 opam 安装 coq as per these instructions 并收到错误消息

`No solution for coq: The following dependencies couldn't be met:
          - coq → ocaml < 4.10
              base of this switch (use '--unlock-base' to force)

我继续使用以下命令切换到 ocaml 4.05.0

opam switch create with-coq 4.05.0

并且可以成功安装 Coq,但我更愿意使用更新版本的 ocaml。这是 Coq 和 oCaml 之间的实际不兼容性,还是我做错了什么?

为了增加上下文,我现在使用的是 opam 2.0.6、ocaml 4.05.0 版和 Coq 8.11.0 版。我的操作系统是 macOS。之前,唯一的区别是我尝试使用 ocaml 4.10.0.

谢谢!

您需要 v8.11 分支的提示或等待 8.11.1 应该很快就会出来。

虽然你不需要回到 4.05.0,4.09 可以正常工作,但 4.07.1+flambda 是我推荐的,参见 https://coq.discourse.group/t/install-notes-on-coq-and-ocaml-versions-configuration/713