[SR-Users] Link problem between kamailio and MariaDB

Henning Westerholt hw at kamailio.org
Thu May 24 08:39:34 CEST 2018

Am Mittwoch, 23. Mai 2018, 15:34:41 CEST schrieb Ginhoux, Patrick:
> At the moment, I'm trying to replace MySQL by MariaDB on my Kamailio server
> (5.0.1) . In  previous post I have been told that Kamailio supports MariaDB
> and there is no special module to load.
> This work is done on a new server running RHEL 7.4 and MariaDB 10.2.14 that
> is installed under /opt/mysql/na/10.2.14 folder.
> I encounter different problem:
> -          Without changing anything in the kamailio script, kamailio failed
> to find the libmysqlclient.so.18 library.
> -          So I thought that I could get rid of the above error by changing
> the MODULEPATH in the Kamailio-local.cfg as follows :
> MODULEPATH="/usr/lib64/kamailio/modules/:/opt/mysql/na/10.2.14/lib64/"
> But with this, I get 2 problem:
> [..]

Hello Patrick,

the Kamailio module path is not related to the system library path. 

So the correct configuration is to point in the Kamailio cfg the module path to the installed 
location for the Kamailio modules, not include the system library path here.

If you have an issue that the db_mysql module can't find the libmysql system library, you 
can either fix the system library search path or use a symlink approach as you described in 
the earlier post as well.

Best regards,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180524/a5af6c2e/attachment.html>

More information about the sr-users mailing list