I mostly develop kamailio on MacOS (since several years ago). I install MySQL from macports an everything works fine. You would need also the pkgconfig package, which allows kamailio build system (makefile) to discover the location of devel headers for mysql client library.

Macports are available at:

  - https://www.macports.org/

There are other package managers for MacOS like homebrew or flint.

Given Diego's details that devel headers are also deployed by mysql dmg, the steps to compile with them should be:

- edit src/modules/mysql/Makefile

- update the values for CDEFS and LIBS to point to the directories holding the include .h files and the shared libraries

- save and then try to compile kamailio with db_mysql module enabled

Cheers,
Daniel


On 09/01/2017 13:35, Diego Nadares wrote:
In my mac:

I think that mysql dmg installed comes with dev headers too.

dnadaress-MacBook-Air:~ dnadares$ locate mysql.h
/usr/local/mysql-5.6.19-osx10.7-x86_64/include/mysql.h

cheers.

Diego.


2017-01-09 9:27 GMT-03:00 Diego Nadares <dnadares@gmail.com>:
Hi Luis, 

Do you have mysql installed? Because it's not finding those headers. 

El El lun, 9 de ene. de 2017 a las 05:21, Luis De Marchi <luis@snowmanlabs.com> escribió:
Hi,

Sorry, my english, I'm using the translator.
I'm having trouble installing Kamailio for Mac 10.12

Terminal:
Luis:kamailio luisdemarchi$ sudo make all

CC (gcc) [M db_mysql.so] km_db_mysql.o
km_db_mysql.c:41:10: fatal error: 'mysql.h' file not found
#include <mysql.h>
         ^
1 error generated.
make[1]: *** [km_db_mysql.o] Error 1
make: *** [modules] Error 1


Luís De Marchi 
Diretor Administrativo 

+55 (41) 99815-6800 
+55 (41) 3027-7669 
www.snowmanlabs.com





_______________________________________________

SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list

sr-users@lists.sip-router.org

http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com