Hi Kelvin,

The Makefile for the db_mysql module is using the mysql_config tool in order to "learn" the correct path for include files and libraries. There is no need to change the code in the module.

In your case, what is the output for (running in shell) :
    mysql_config --include
    mysql_config --include | sed 's/\(-I.*\)\/mysql/\1/g'

Also, is your mysql installed via packages or from sources ? I use also Ubuntu and I see mysql include files installed under:
    /usr/include/mysql/

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 25.06.2014 05:30, Kelvin Williams wrote:
Several times recently when trying to build OpenSIPS from source I had trouble with the required MySQL libraries not being found even though I knew they were installed on the box.

After looking a bit further I found that the libmysqlclient-dev package does not install them in /usr/lib/mysql/* but /usr/lib/mysql. The includes specify the mysql directory.

I've created a patch that I use now prior to compilation and it works every time (on our Ubuntu boxes). Is there a reason for the hard path to mysql/*?

Patch: https://gist.github.com/kelvinewilliams/6767892c153193b11008

--

--
Kelvin Williams
[email protected] <mailto:[email protected]>
678.253.7871


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to