Re: [SR-Users] [Error] Install Kamailio 4.4 in Mac 10.12

2017-01-10 Thread Daniel-Constantin Mierla
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  >:
>
> 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
> > 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 
> * ^*
> 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

___
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


Re: [SR-Users] [Error] Install Kamailio 4.4 in Mac 10.12

2017-01-09 Thread anfecora
Luis, algunas veces es mejor instalar virtualbox en mac y desde hay correr
kamailio si es para testing.

aqui hay info de un problema parecido.
http://sip-router.1086192.n5.nabble.com/Kamailio-on-Mac-td129264.html

el error hace referencia  a la instalacion de mysql.

On Sun, Jan 8, 2017 at 4:25 PM, Luis De Marchi  wrote:

> 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 
> * ^*
> 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%2041%2099815-6800>
> +55 (41) 3027-7669 <+55%2041%203027-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


Re: [SR-Users] [Error] Install Kamailio 4.4 in Mac 10.12

2017-01-09 Thread Diego Nadares
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 :

> 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 <
> l...@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 
>> * ^*
>> 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%2041%2099815-6800>
>> +55 (41) 3027-7669 <+55%2041%203027-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


Re: [SR-Users] [Error] Install Kamailio 4.4 in Mac 10.12

2017-01-09 Thread Diego Nadares
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 <
l...@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 
> * ^*
> 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