不支持沙丘版本 [英] Dune version not supported

查看:105
本文介绍了不支持沙丘版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从源代码安装 google-drive-ocamlfuse,但是 prereuiqisites 让我有点困惑.我遇到了这个错误:

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

我安装了 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!

但显然,gapi-ocaml 需要沙丘 1.11,还是我完全错了?我没有使用 OCaml 或沙丘或所有其他工具的经验...

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...

如何安装?

推荐答案

不要使用您的发行版的 dune.相反,通过 opam 获取它:

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

dnf remove dune
opam install dune

这篇关于不支持沙丘版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆