2012-01-16 56 views
1

我试图用omake编译OMakefile。 我使用GODI安装了所有需要的软件包。 GODI向我展示了这些软件包的安装情况。Ocamlfind没有找到所有这些软件包。 随着ocamlfind列表只显示一些。ocamlfind没有找到与godi安装的软件包

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

问候

斯文

[email protected]:/# 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]) 

回答

1

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

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

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

在例如,你的~/.bashrc

顺便说一句,电池和ocamlgraph可作为Debian软件包;你可能想先尝试一下。

+0

通常我使用ocamlfind的GODI和路径设置。我尝试了ocamlfind的debian,但没有将我的PATH设置为GODI/bin。两个ocamlfind的输出都是相同的* wonder *。我会做一个备份并尝试Debian软件包。 – Gens

+0

它适用于debian软件包,但现在我需要软件包bin_prot,它不是Debian的一部分。任何想法? – Gens

+0

bin_prot在Debian中:http://packages.debian.org/search?keywords=libbin-prot-camlp4-dev –

相关问题