OPAM软件包未运行 [英] OPAM package not running
本文介绍了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.
这篇关于OPAM软件包未运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文