简体   繁体   中英

Error: Version 1.11 of dune is not supported

I want to test this project: https://github.com/nt591/monkey-ocaml on my Mac. After downloading the project, dune runtest returned the following error:

$ dune runtest
File "dune-project", line 1, characters 11-15:
1 | (lang dune 1.11)
               ^^^^
Error: Version 1.11 of dune is not supported.
Supported versions:
- 0.0
- 1.0 to 1.6

Then, I followed this suggestion , but it returned this:

$ dnf remove dune
-bash: dnf: command not found

Do I have to install dnf ? Could anyone help?

Solved in the comments, but in case anyone else stumbles across this, dune was installed with opam but out of date, so the fix was a simple opam update && opam upgrade .

If dune is installed in some other way, it's strongly recommended that you uninstall that instance and install it using `opam´ instead.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM