Dune version not supported

ぐ巨炮叔叔 提交于 2021-02-11 14:20:39

问题


I am trying to install google-drive-ocamlfuse from source, but the prereuiqisites got me a little confused. I am experiencing this error:

[bf@localhost google-drive-ocamlfuse]$ dune build @install
File "/home/bf/.opam/default/lib/gapi-ocaml/dune-package", 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.7

I have dune version 1.7 installed:

[bf@localhost google-drive-ocamlfuse]$ dune --version
%%VERSION%%
[bf@localhost google-drive-ocamlfuse]$ sudo dnf install dune
[sudo] password for bf: 
Last metadata expiration check: 0:48:24 ago on Wed 21 Aug 2019 15:57:42 CEST.
Package ocaml-dune-1.7.3-1.fc29.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

But apparently, gapi-ocaml needs dune 1.11, or am I completely mistaken? I have no experience with OCaml or dune or all the other tools...

How can I get this installed?


回答1:


Don't use your distribution's version of dune. Instead, get it via opam:

dnf remove dune
opam install dune


来源:https://stackoverflow.com/questions/57594205/dune-version-not-supported

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