我试着用omake编译一个OMakefile。我用GODI安装了所有需要的包。GODI向我展示了安装后的这些包。Ocamlfind没有找到所有这些包。使用ocamlfind列表,它只显示一些。
它没有找到的包是:电池和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])发布于 2012-01-17 17:00:34
您是否在使用GODI安装提供的ocamlfind命令?我的猜测是您使用的是Debian提供的。
要查看您使用的是哪一个,请运行which ocamlfind。如果它返回/usr/bin/ocamlfind,那么您使用的是Debian版本。要使用GODI one,您需要调整PATH环境变量;为此,将:
export PATH=/path/to/godi/bin:$PATH例如在你的~/.bashrc中。
顺便说一下,电池和ocamlgraph以Debian包的形式提供;你可能想先试一试。
https://stackoverflow.com/questions/8880227
复制相似问题