ocaml命令行找不到";topfind";

ocaml命令行找不到";topfind";,ocaml,opam,ocaml-toplevel,Ocaml,Opam,Ocaml Toplevel,我已经安装了顶级,并且有$OCAML\u TOPLEVEL\u路径设置 export OCAML_TOPLEVEL_PATH=/Users/smcho/.opam/system/lib/toplevel 我检查了目录是否存在,并且有一个文件topfind 这是我的~/.ocamlinit文件内容 #use "topfind" #camlp4o #thread #require "core.top" #require "core.syntax" 问题是,我收到的错误消息说它找不到topfind

我已经安装了顶级,并且有$OCAML\u TOPLEVEL\u路径设置

export OCAML_TOPLEVEL_PATH=/Users/smcho/.opam/system/lib/toplevel
我检查了目录是否存在,并且有一个文件
topfind

这是我的
~/.ocamlinit
文件内容

#use "topfind"
#camlp4o
#thread
#require "core.top"
#require "core.syntax"
问题是,我收到的错误消息说它找不到topfind

> ocaml
        OCaml version 4.02.1

Cannot find file topfind.
Unknown directive `camlp4o'.
# 
对于“ustop”,我没有错误消息

可能有什么问题

这是我的ocaml环境设置

> opam config env
CAML_LD_LIBRARY_PATH="/Users/smcho/.opam/system/lib/stublibs:/usr/local/lib/ocaml/stublibs"; export CAML_LD_LIBRARY_PATH;
OPAMUTF8MSGS="1"; export OPAMUTF8MSGS;
MANPATH=":/Users/smcho/.opam/system/man"; export MANPATH;
MAKELEVEL=""; export MAKELEVEL;
MAKEFLAGS=""; export MAKEFLAGS;
PERL5LIB="/Users/smcho/.opam/system/lib/perl5:"; export PERL5LIB;
OCAML_TOPLEVEL_PATH="/Users/smcho/.opam/system/lib/toplevel"; export OCAML_TOPLEVEL_PATH;
PATH="..."; export PATH;
正如samoth所说:

通常,如果您不使用 系统编译器。如果您使用的是系统编译器,则可以修改 您可以使用~/.ocamlit加载$OCAML\u TOPLEVEL\u路径,如中所做

因此,您可以使用其他开关或修改
.ocamlinit