caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Daniel Margolis <dmargoli+lists@af0.net>
To: caml-list@inria.fr
Subject: OCaml-MySQL
Date: Mon, 14 Nov 2005 13:09:45 -0500	[thread overview]
Message-ID: <0AEF059E-3902-4A24-A588-D57C4202C1AF@af0.net> (raw)

Hi,

I'm trying to get database access working in OCaml, using v. 3.0.9 on  
MacOS 10.4. So first, if anyone has recommendations of a good  
interface for any (free) database server (i.e. I'm not tied to  
implementation--MySQL, PostgreSQL, SQLite, etc, are all fine), I'd  
gladly like to hear them. Performance is something of a concern, but  
my main concern is ease of use--something with an intuitive interface  
would be nice.

Second, I've been trying to get OCaml-MySQL  (from http:// 
raevnos.pennmush.org/code/ocaml-mysql/) working, since it seems a  
good option. So I had to replace the OCamlMakefile it comes with with  
a newer version (because the version it comes with tries to do gcc - 
shared, which is unavailable on OSX) to get it to compile. But when I  
try to build the demo, using "ocamlc mysql.cma demo.ml", I get

> Error on dynamically loaded library: Symbol not found:  
> _mysql_get_host_info
>   Referenced from: ./dllmysql_stubs.so
>   Expected in: flat namespace

I don't know anything much about linking OCaml code to C modules, so  
I'm a bit lost. Can anyone suggest what might be causing this, and  
how I can fix it?

Thanks,
Dan


             reply	other threads:[~2005-11-14 18:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-14 18:09 Daniel Margolis [this message]
2005-11-14 18:43 ` [Caml-list] OCaml-MySQL (fixed) Daniel Margolis
2005-11-15 11:54   ` Richard Jones
2005-11-15 12:35     ` David Baelde

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=0AEF059E-3902-4A24-A588-D57C4202C1AF@af0.net \
    --to=dmargoli+lists@af0.net \
    --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).