[OpenSIPS-Users] db_mysql compilation issues.... Resolved.
Bogdan-Andrei Iancu
bogdan at opensips.org
Wed Jun 25 12:03:58 CEST 2014
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
> kelvin at kelvinwilliams.net <mailto:kelvin at kelvinwilliams.net>
> 678.253.7871
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140625/c74ccc80/attachment.htm>
More information about the Users
mailing list