1

我试图用 omake 编译一个 OMakefile。我用 GODI 安装了所有需要的软件包。GODI 向我展示了这些已安装的软件包。Ocamlfind 没有找到所有这些包。使用 ocamlfind list 它只显示一些。

它没有找到的包裹是:电池和ocamlgraph。有没有人有解决这个问题的想法。我的目标是使用别人创建的程序。

问候

斯文

    root@debian:/# ocamlfind list
    bigarray            (version: [distributed with Ocaml])
    camlp4              (version: [distributed with Ocaml])
    camlp4.exceptiontracer (version: [distributed with Ocaml])
    camlp4.extend       (version: [distributed with Ocaml])
    camlp4.foldgenerator (version: [distributed with Ocaml])
    camlp4.gramlib      (version: [distributed with Ocaml])
    camlp4.lib          (version: [distributed with Ocaml])
    camlp4.listcomprehension (version: [distributed with Ocaml])
    camlp4.locationstripper (version: [distributed with Ocaml])
    camlp4.macro        (version: [distributed with Ocaml])
    camlp4.mapgenerator (version: [distributed with Ocaml])
    camlp4.metagenerator (version: [distributed with Ocaml])
    camlp4.profiler     (version: [distributed with Ocaml])
    camlp4.quotations   (version: [distributed with Ocaml])
    camlp4.quotations.o (version: [distributed with Ocaml])
    camlp4.quotations.r (version: [distributed with Ocaml])
    camlp4.tracer       (version: [distributed with Ocaml])
    dbm                 (version: [distributed with Ocaml])
    dynlink             (version: [distributed with Ocaml])
    extlib              (version: 1.5)
    findlib             (version: 1.2.5)
    graphics            (version: [distributed with Ocaml])
    labltk              (version: [distributed with Ocaml])
    num                 (version: [distributed with Ocaml])
    num-top             (version: 1.2.5)
    num.core            (version: [internal])
    sexplib             (version: 4.2.16)
    sexplib.core        (version: n/a)
    sexplib.syntax      (version: n/a)
    sexplib.top         (version: n/a)
    stdlib              (version: [distributed with Ocaml])
    str                 (version: [distributed with Ocaml])
    threads             (version: [distributed with Ocaml])
    threads.posix       (version: [internal])
    threads.vm          (version: [internal])
    type-conv           (version: 1.7.1)
    type-conv.syntax    (version: 1.7.1)
    unix                (version: [distributed with Ocaml])
4

1 回答 1

1

你在使用你的 GODI 安装提供的 ocamlfind 命令吗?我的猜测是您使用的是 Debian 提供的那个。

要查看您使用的是哪一个,请运行which ocamlfind. 如果它返回/usr/bin/ocamlfind,那么您使用的是 Debian。使用 GODI 需要调整PATH环境变量;为此,请输入:

export PATH=/path/to/godi/bin:$PATH

在例如你的~/.bashrc.

顺便说一下,电池和 ocamlgraph 可以作为 Debian 包提供;您可能想先尝试一下。

于 2012-01-17T09:00:34.190 回答