OPAM软件包未运行
问题描述:
我已经安装了OPAM并运行初始化并更新了.bashrc代码.然后,我安装了ocamlfind软件包,该软件包成功运行.但是当我尝试
I've installed OPAM and run the initialization and updated my .bashrc code too. I then installed the ocamlfind package, which went successfully. But when I try
#use "topfind";;
我得到以下内容
Cannot find file topfind
我正在运行从Opensuse 12.2上的源代码构建的ocaml 4.00.1.
I'm running ocaml 4.00.1 built from source on Opensuse 12.2.
答
如果未定义$OCAML_TOPLEVEL_PATH
,则必须对其进行定义:
If $OCAML_TOPLEVEL_PATH
is not defined, you have to defined it:
export OCAML_TOPLEVEL_PATH=/home/%user%/.opam/%version%/lib/toplevel
别忘了更改%user%
和您的编译器%version%
Don't forget to change %user%
and your compiler %version%
在opam bugtracker上检查此问题.
Check this issue on the opam bugtracker.