我正在尝试使用Core
模块输入utop
,由 Jane Street 发起并使用安装opam
.
问题是这样的
utop # open Core.Std;;
Error: Unbound module Core
utop
似乎没有通往Core
module.
如何指定可以通过以下方式找到的路径utop
访问Core
模块?有没有utop
指定库路径的 init 文件?
我从 OCaml 4.01.0 解释器中收到相同的错误消息。
我可以避免此错误的唯一方法实际上是将目录更改为/Users/myname/.opam/system/lib/core
.
我遇到了同样的问题,这里的说明对我有用。
https://github.com/realworldocaml/book/wiki/Installation-Instructions#setting-up-and-using-utop https://github.com/realworldocaml/book/wiki/Installation-Instructions#setting-up-and-using-utop
将以下行添加到 ~/.ocamlinit 文件中
#use "topfind";;
#thread;;
#camlp4o;;
#require "core.top";;
#require "core.syntax";;
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)