[OpenSIPS-Users] db_mysql compilation issues.... Resolved.
bogdan at opensips.org
Wed Jun 25 12:03:58 CEST 2014
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 | 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:
OpenSIPS Founder and Developer
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
> kelvin at kelvinwilliams.net <mailto:kelvin at kelvinwilliams.net>
> Users mailing list
> Users at lists.opensips.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users