caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] How to install a package
@ 2001-08-08 10:44 Johann Spies
  2001-08-08  9:40 ` Xavier Leroy
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Johann Spies @ 2001-08-08 10:44 UTC (permalink / raw)
  To: ocaml mailing list

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
#
10:37:45 js@bywoner:~$ sudo ldconfig
10:38:05 js@bywoner:~$ ocaml
        Objective Caml version 3.01
# open Libpq;;
Unbound module Libpq

--------------------

Why is that?  

I can compile the program with the following lines in a Makefile:

COMPILE  = ocamlfind ocamlopt -package libpq
LINK     = ocamlfind ocamlopt -linkpkg -package libpq

But how can I use libpq in the toplevel?


Johann
-- 
Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch

     "Ye lust, and have not; ye kill, and desire to have, 
      and cannot obtain; ye fight and war, yet ye have not, 
      because ye ask not."            James 4:2 
-------------------
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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-08-08 11:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-08 10:44 [Caml-list] How to install a package Johann Spies
2001-08-08  9:40 ` Xavier Leroy
2001-08-08 10:11 ` Alain Frisch
2001-08-08 13:38   ` Johann Spies
     [not found] ` <15217.3474.83354.531393@akasha.ijm.jussieu.fr>
2001-08-08 13:00   ` Johann Spies

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).