OCaml Forge
SCM

Detail: [#1365] Build fails on OSX, doesn't find mysql.h or mysql libraries.

Bugs: Browse | Download .csv | Monitor

[#1365] Build fails on OSX, doesn't find mysql.h or mysql libraries.

Date:
2014-01-22 22:53
Priority:
3
State:
Open
Submitted by:
Tim McGilchrist (lambda_foo)
Assigned to:
Nobody (None)
Hardware:
Macintosh
Resolution:
Awaiting Response
Severity:
major
Version:
v1.1
Component:
None
Operating System:
MacOS X
Product:
None
 
URL:
Summary:
Build fails on OSX, doesn't find mysql.h or mysql libraries.

Detailed description
The opam install of ocaml-mysql fails to find the mysql headers and libraries.
Mysql is installed using Macports on OSX 10.8.5.

Let me preface this with, I'm no expert in building C libs cross platform.

So I replaced the list of directories to search for headers and libraries with the mysql_config command that returns the exact location of them. I've only tested this on OSX and Linux (Ubuntu), as I don't have access to any other Unix or Windows systems.

I've attached a patch file that builds correctly on OSX and Linux (Ubuntu).

Followup

Message
Date: 2014-10-16 16:03
Sender: ygrek

Sorry for the long delay, please try release 1.1.3 (it is _not_ using mysql_config)
Date: 2014-06-16 08:12
Sender: ygrek

Sorry, I missed this report (forge software to blame again!), now can reproduce it myself with percona mysql, will fix soon

Attached Files:

Attachments:
build.patch

Changes:

Field Old Value Date By
ResolutionNone2014-10-16 16:03ygrek
File Added248: build.patch2014-01-22 22:53lambda_foo