Hey Peter,

Am 01.10.2011 um 04:34 schrieb Peter Schrock:
> I am assuming you are talking about mysql. I downloaded a dmg from the mysql 
> site (which has been all that helpful as far as finding what I need). I am 
> using Server version: 6.0.11-alpha MySQL Community Server (GPL). 

Using MacPorts[1], it's really easy to install Unix applications on a Mac, 
including development packages. With regards to your problem, satisfying gcc 
should be as easy as installing the mysql5-devel package using ports:

sudo port install mysql5-devel

Alternatively, if you don't need MySQL support in your Kamailio server at all, 
exclude the module during the build:

make exclude_modules="db_mysql" <your other build options>

or don't include anything that has a dependency at all:

make group_include="standard" <your other build options>

SIP Router's build process (and therefore, Makefile) is pretty powerful. 
Consult the 'INSTALL' file for details.


HTH,

--Timo




[1] http://www.macports.org/



> On Fri, Sep 30, 2011 at 4:58 PM, Nick Khamis <sym...@gmail.com> wrote:
> You neet the mysql header library. What distro are you using?
> 
> Nick.
> 
> On Fri, Sep 30, 2011 at 7:44 PM, Peter Schrock <peter.schr...@gmail.com> 
> wrote:
> > I can't seem to get kamailio to "make". I am following the directions on the
> > wiki on how to install. I have downloaded, compiled, and installed mysql
> > server and every time I run to "make all" with kamailio, I get this error
> > message.
> > At first, I was thinking that km_db_mysql.c couldn't find the file. The
> > header seems to be looking for mysql.h (at #include <mysql/mysql.h>). I
> > found the file from installing mysql server and I thought I'd help
> > km_db_mysql.c to find the file, but it still gives me this error.
> > I am using a power pc running OS X.5.1.
> > CC (gcc) [M db_mysql.so] km_db_mysql.o
> > km_db_mysql.c:49:19: error: mysql/mysql.h: No such file or directory
> > km_db_mysql.c: In function ‘kam_mysql_mod_init’:
> > km_db_mysql.c:92: warning: implicit declaration of function
> > ‘mysql_get_client_info’
> > km_db_mysql.c:92: warning: format ‘%s’ expects type ‘char *’, but argument 7
> > has type ‘int’
> > km_db_mysql.c:92: warning: format ‘%s’ expects type ‘char *’, but argument 6
> > has type ‘int’
> > make[1]: *** [km_db_mysql.o] Error 1
> > make: *** [modules] Error 1
> >
> > Peter Schrock



_______________________________________________
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

Reply via email to