Ocaml 在wsl上使用dune时,ctypes被隐藏(如果';,则不满足';存在)错误

Ocaml 在wsl上使用dune时,ctypes被隐藏(如果';,则不满足';存在)错误,ocaml,windows-subsystem-for-linux,ocaml-dune,Ocaml,Windows Subsystem For Linux,Ocaml Dune,我正在windows 10机器上使用wsl ubuntu,并试图使用dune构建一个ocaml项目()。不幸的是,我遇到了以下错误: # dune build bin/kaleidoscope.exe File "/home/impor/.opam/4.10.0/lib/ctypes/META", line 1, characters 0-0: Error: Library "ctypes.foreign.threaded" in /home/impor/.opam/4.10.0/lib/cty

我正在windows 10机器上使用wsl ubuntu,并试图使用dune构建一个ocaml项目()。不幸的是,我遇到了以下错误:

# dune build bin/kaleidoscope.exe
File "/home/impor/.opam/4.10.0/lib/ctypes/META", line 1, characters 0-0:
Error: Library "ctypes.foreign.threaded" in
/home/impor/.opam/4.10.0/lib/ctypes is hidden (unsatisfied 'exist_if').
-> required by library "ctypes.foreign" in
   /home/impor/.opam/4.10.0/lib/ctypes
-> required by executable kaleidoscope in bin/dune:2
Hint: try: dune external-lib-deps --missing bin/kaleidoscope.exe
我找不到关于这个的任何文档,所以我很迷路

# dune external-lib-deps --missing bin/kaleidoscope.exe

不执行任何操作

这是由于未安装opam软件包
ctypes foreign

您如何安装依赖项?
opam列表的输出是什么?您是否安装了opam软件包
conf-pkg-config
?是否安装了
ctypes-foreign
?未安装ctypes-foreign。安装它修复了这个问题。谢谢你。我会把它作为对其他人的回答。