Browse thread
[Caml-list] How to install a package
- Johann Spies
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Johann Spies <jspies@m...> |
| Subject: | [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
#
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