我在我的windows10机器上使用wsl ubuntu,并试图使用dune构建一个ocaml项目(https://github.com/adamrk/llvm-ocaml-tutorial)。不幸的是,我得到了这个错误:
# 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什么也不做
发布于 2020-04-05 21:07:00
这是因为没有安装opam包ctypes-foreign。
https://stackoverflow.com/questions/61038438
复制相似问题