如何加载绳索:已安装,但加载失败

how to load rope: installed it, but failing to load it

我用 opam 安装了 rope 并验证它可用:

rope 0.5 Ropes ("heavyweight strings")

但是怎么加载呢?? The documentation 声明我应该使用 #load "rope.cma";; 但这给了我消息 Cannot find file rope.cma.

有人可以告诉我加载它的咒语是什么吗??

要将 rope 加载到交互式会话中,请使用 topfind

# #use "topfind";;
# #require "rope";;

rope编译你的程序

ocamlbuild -pkg rope your_program.native

或者

ocamlfind ocamlopt -package rope your_program.ml -o your_program