我正在尝试使用Ocaml csv库。我下载csv-1.2.3跟着安装findlib后的安装说明:在共享服务器上安装Ocaml驼峰库
- Uncompress the source archive and go to the root of the package,
- Run 'ocaml setup.ml -configure',
- Run 'ocaml setup.ml -build',
- Run 'ocaml setup.ml -install'
现在我有META
,csv.a
,csv.cma
,csv.cmi
,csv.cmx
,csv.cmxa
,csv.mli
文件~/opt/lib/ocaml/site-lib/csv
剧目。 shell命令ocamlfind list -describe
给出了csv A pure OCaml library to read and write CSV files. (version: 1.2.3)
,我相信这意味着csv已正确安装。
,但是当我在compute.ml
模块添加
let data = Csv.load "foo.csv" in
,并尝试在更大的程序包我的编译错误中编译:
File "_none_", line 1, characters 0-1:
Error: No implementations provided for the following modules:
Csv referenced from compute.cmx"
,如果我只需键入
let data = load "foo.csv" in
我收到:
File "compute.ml", line 74, characters 13-17:
Error: Unbound value load
当我在Ocaml终端中直接使用Csv.load
或load
时,出现相同类型的错误。有人会知道我的代码或库安装中出现了什么问题吗?
显示编译命令行 – ygrek
是“制造”和Makefile是相当大的,因为它是一个大的程序(约50个文件.ml) – user1659958