Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] How to install a package
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Xavier Leroy <Xavier.Leroy@i...>
Subject: Re: [Caml-list] How to install a package
> I have followed the instructions for installing libpq_ocaml.
> 
> $ sudo make install
> ocamlfind install libpq libpq.cmi *.o libpq.cmo *.cmx  META
> Installed /usr/lib/ocaml/libpq/META
> Installed /usr/lib/ocaml/libpq/libpq.cmx
> Installed /usr/lib/ocaml/libpq/libpq.cmo
> Installed /usr/lib/ocaml/libpq/libpqstub.o
> Installed /usr/lib/ocaml/libpq/libpq.o
> Installed /usr/lib/ocaml/libpq/libpq.cmi
> 
> So far so good.
> 
> Now:
> ------------------------------------------------
> $ ocaml
>         Objective Caml version 3.01
> 
> # open Libpq;;
> Unbound module Libpq

I don't know what this libpq package is, and whether the documentation
that comes with it explain the issue, but it seems that it installs in
a subdirectory libpq/ of the Caml standard library directory.  If so,
you must tell ocaml to look there:

        ocaml -I +libpq

Hope this helps,

- Xavier Leroy
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr