我查看了这个帖子OCaml - Cannot find graphics.cma,但不幸的是在这里找不到建议。我使用的是Catalina macos,在运行ocamlbuild foo.byte时,我收到以下错误:
+ ocamlc.opt str.cma graphics.cma -thread threads.cma foo.cmo -o foo.byte
File "_none_", line 1:
Error: Cannot find file graphics.cma
Command exited with code 2.
Compilation unsuccessful after building 3 targets (0 cached) in 00:00:00.我尝试通过opam安装图形,并在删除xquartz的brew版本后手动安装xquartz,这使我能够很好地安装图形,但仍然出现上面的错误。
发布于 2020-07-20 15:54:54
在没有更多细节的情况下,听起来好像你还没有把“图形”包添加到你的_tag文件中。(沙丘也需要详细说明此依赖项)。
https://stackoverflow.com/questions/62974989
复制相似问题