0

我已经使用 ocamlbrew 来安装 ocaml 和相关的实用程序。我也有一个较早的安装。如文档中所述,我使用 /opt 来安装 ocamlbrew。但是当我以普通用户身份运行 utop 时,出现错误

Fatal error: cannot load shared library dllunix
Reason: /usr/local/lib/ocaml/stublibs/dllunix.so: undefined symbol: caml_stat_alloc_string

ldconfig -p | grep dllunix

什么都不返回

4

1 回答 1

0

该说明非常好(并且有效):https ://github.com/realworldocaml/book/wiki/Installation-Instructions

从 brew 安装 OPAM,然后将其用于所有内容,包括 OCaml。最好先卸载通过 brew 安装的 OCaml。

于 2014-01-05T09:24:14.903 回答