From: Johann Spies <jspies@maties.sun.ac.za>
To: ocaml mailing list <caml-list@inria.fr>
Subject: [Caml-list] How to install a package
Date: 08 Aug 2001 10:44:39 +0000 [thread overview]
Message-ID: <87y9oude5k.fsf@bywoner.sun.ac.za> (raw)
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
next reply other threads:[~2001-08-08 8:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-08 10:44 Johann Spies [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y9oude5k.fsf@bywoner.sun.ac.za \
--to=jspies@maties.sun.ac.za \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).