* Reference to undefined global `Mysql'
@ 2007-09-21 7:42 Robert Wong
2007-09-21 8:27 ` [Caml-list] " Julien Moutinho
0 siblings, 1 reply; 3+ messages in thread
From: Robert Wong @ 2007-09-21 7:42 UTC (permalink / raw)
To: caml-list
[-- Attachment #1: Type: text/plain, Size: 388 bytes --]
I'm pretty new to ocaml, and I'm having trouble accessing my MySQL database
using it.
Here's a sample session, which shows that at least some of the ocaml-mysql
library is installed:
debian:$ ocaml
Objective Caml version 3.09.2
# open Mysql;;
# connect defaults;;
Reference to undefined global `Mysql'
What would be the next step to debug this problem?
Thank you.
--Robert
[-- Attachment #2: Type: text/html, Size: 493 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] Reference to undefined global `Mysql'
2007-09-21 7:42 Reference to undefined global `Mysql' Robert Wong
@ 2007-09-21 8:27 ` Julien Moutinho
2007-09-21 15:00 ` Eric Cooper
0 siblings, 1 reply; 3+ messages in thread
From: Julien Moutinho @ 2007-09-21 8:27 UTC (permalink / raw)
To: caml-list
On Fri, Sep 21, 2007 at 12:42:54AM -0700, Robert Wong wrote:
> debian:$ ocaml
> Objective Caml version 3.09.2
>
> # open Mysql;;
> # connect defaults;;
> Reference to undefined global `Mysql'
>
>
> What would be the next step to debug this problem?
To open the manual here :)
http://caml.inria.fr/pub/docs/manual-ocaml/manual023.html#htoc111
% ocaml
Objective Caml version 3.10.1+dev0 (2007-05-21)
# open Unix;;
# time ();;
Reference to undefined global `Unix'
% ocaml unix.cma
Objective Caml version 3.10.1+dev0 (2007-05-21)
# open Unix;;
# time ();;
- : float = 1190362793.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] Reference to undefined global `Mysql'
2007-09-21 8:27 ` [Caml-list] " Julien Moutinho
@ 2007-09-21 15:00 ` Eric Cooper
0 siblings, 0 replies; 3+ messages in thread
From: Eric Cooper @ 2007-09-21 15:00 UTC (permalink / raw)
To: caml-list
On Fri, Sep 21, 2007 at 10:27:26AM +0200, Julien Moutinho wrote:
> % ocaml unix.cma
> Objective Caml version 3.10.1+dev0 (2007-05-21)
>
> # open Unix;;
> # time ();;
> - : float = 1190362793.
Or, if you're already in a toplevel and discover you need a module:
$ ocaml
Objective Caml version 3.10.0
# Unix.time ();;
Reference to undefined global `Unix'
# #load "unix.cma";;
# Unix.time ();;
- : float = 1190386792.
--
Eric Cooper e c c @ c m u . e d u
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-09-21 14:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-21 7:42 Reference to undefined global `Mysql' Robert Wong
2007-09-21 8:27 ` [Caml-list] " Julien Moutinho
2007-09-21 15:00 ` Eric Cooper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox