Version française
Home     About     Download     Resources     Contact us    
Browse thread
Building ocaml-mysql on Mac OS X
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Ranjan Bagchi <ranjan.bagchi@f...>
Subject: Building ocaml-mysql on Mac OS X
Hi --

Curious if anyone has had luck buildling ocaml-mysql on OS X ( it  
seem to be fine on linux).

I had to mess with the Makefile so it would find the mysql libraries  
in /opt/local (I use darwin ports), and did the obvious things, but  
when I build a toplevel and try to bring in the mysql stuff I get the  
following error:

Ranjan-Bagchis-Computer:~/ocaml/foo ranjan$ ocamlfind mktop -o  
topmysql -package mysql -custom

Ranjan-Bagchis-Computer:~/ocaml/foo ranjan$ ./topmysql
         Objective Caml version 3.08.3

# #use "topfind";;
- : unit = ()
Findlib has been successfully loaded. Additional directives:
   #require "package";;      to load a package
   #list;;                   to list the available packages
   #camlp4o;;                to load camlp4 (standard syntax)
   #camlp4r;;                to load camlp4 (revised syntax)
   #predicates "p,q,...";;   to set these predicates
   Topfind.reset();;         to force that packages will be reloaded
   #thread;;                 to enable threads

- : unit = ()
# #require "mysql";;
/opt/local/lib/site-lib/mysql: added to search path
/opt/local/lib/site-lib/mysql/mysql.cma: loaded
The external function `db_connect' is not available

Any hints on getting this built successfully?

Thanks,

Ranjan Bagchi