From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA03981; Wed, 8 Aug 2001 10:44:49 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA03907 for ; Wed, 8 Aug 2001 10:44:47 +0200 (MET DST) Received: from maties1.sun.ac.za (maties1.sun.ac.za [146.232.128.1]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f788iiD20082 for ; Wed, 8 Aug 2001 10:44:45 +0200 (MET DST) Received: from bywoner.sun.ac.za ([146.232.129.121]) by maties1.sun.ac.za with esmtp (Exim 3.31 #1) id 15UOxF-0000Wb-00 for caml-list@inria.fr; Wed, 08 Aug 2001 10:44:41 +0200 Received: from js by bywoner.sun.ac.za with local (Exim 3.22 #1 (Debian)) id 15UQpM-0000lw-00 for ; Wed, 08 Aug 2001 10:44:40 +0000 To: ocaml mailing list Subject: [Caml-list] How to install a package From: Johann Spies Date: 08 Aug 2001 10:44:39 +0000 Message-ID: <87y9oude5k.fsf@bywoner.sun.ac.za> User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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